Lines Matching refs:dibh
417 struct buffer_head *dibh;
433 error = gfs2_meta_inode_buffer(ip, &dibh);
438 if (dsize > (dibh->b_size - sizeof(struct gfs2_dinode)))
439 dsize = (dibh->b_size - sizeof(struct gfs2_dinode));
440 memcpy(kaddr, dibh->b_data + sizeof(struct gfs2_dinode), dsize);
444 brelse(dibh);
764 * @dibh: The buffer_head containing the on-disk inode
775 static int gfs2_stuffed_write_end(struct inode *inode, struct buffer_head *dibh,
784 unsigned char *buf = dibh->b_data + sizeof(struct gfs2_dinode);
785 struct gfs2_dinode *di = (struct gfs2_dinode *)dibh->b_data;
787 BUG_ON((pos + len) > (dibh->b_size - sizeof(struct gfs2_dinode)));
813 brelse(dibh);
849 struct buffer_head *dibh;
857 ret = gfs2_meta_inode_buffer(ip, &dibh);
864 gfs2_trans_add_bh(ip->i_gl, dibh, 1);
867 return gfs2_stuffed_write_end(inode, dibh, pos, len, copied, page);
876 gfs2_dinode_out(ip, dibh->b_data);
885 brelse(dibh);