Lines Matching refs:dibh
57 static int gfs2_unstuffer_page(struct gfs2_inode *ip, struct buffer_head *dibh, in gfs2_unstuffer_page() argument
75 memcpy(kaddr, dibh->b_data + sizeof(struct gfs2_dinode), dsize); in gfs2_unstuffer_page()
120 struct buffer_head *bh, *dibh; in gfs2_unstuff_dinode() local
128 error = gfs2_meta_inode_buffer(ip, &dibh); in gfs2_unstuff_dinode()
146 dibh, sizeof(struct gfs2_dinode)); in gfs2_unstuff_dinode()
149 error = gfs2_unstuffer_page(ip, dibh, block, page); in gfs2_unstuff_dinode()
157 gfs2_trans_add_meta(ip->i_gl, dibh); in gfs2_unstuff_dinode()
158 di = (struct gfs2_dinode *)dibh->b_data; in gfs2_unstuff_dinode()
159 gfs2_buffer_clear_tail(dibh, sizeof(struct gfs2_dinode)); in gfs2_unstuff_dinode()
171 brelse(dibh); in gfs2_unstuff_dinode()
668 struct buffer_head *dibh = mp->mp_bh[0]; in gfs2_iomap_alloc() local
679 BUG_ON(dibh == NULL); in gfs2_iomap_alloc()
682 gfs2_trans_add_meta(ip->i_gl, dibh); in gfs2_iomap_alloc()
720 ptr = (__be64 *)(dibh->b_data + in gfs2_iomap_alloc()
731 dibh, sizeof(struct gfs2_dinode)); in gfs2_iomap_alloc()
732 gfs2_buffer_clear_tail(dibh, in gfs2_iomap_alloc()
779 gfs2_dinode_out(ip, dibh->b_data); in gfs2_iomap_alloc()
855 struct buffer_head *dibh = NULL, *bh; in gfs2_iomap_get() local
863 ret = gfs2_meta_inode_buffer(ip, &dibh); in gfs2_iomap_get()
866 mp->mp_bh[0] = dibh; in gfs2_iomap_get()
891 iomap->inline_data = dibh->b_data + sizeof(struct gfs2_dinode); in gfs2_iomap_get()
1144 struct buffer_head *dibh = iomap->private; in gfs2_iomap_end() local
1155 gfs2_trans_add_meta(ip->i_gl, dibh); in gfs2_iomap_end()
1182 if (dibh) in gfs2_iomap_end()
1183 brelse(dibh); in gfs2_iomap_end()
1405 struct buffer_head *dibh = NULL; in trunc_start() local
1417 error = gfs2_meta_inode_buffer(ip, &dibh); in trunc_start()
1421 gfs2_trans_add_meta(ip->i_gl, dibh); in trunc_start()
1424 gfs2_buffer_clear_tail(dibh, sizeof(struct gfs2_dinode) + newsize); in trunc_start()
1439 gfs2_dinode_out(ip, dibh->b_data); in trunc_start()
1447 brelse(dibh); in trunc_start()
1616 struct buffer_head *dibh; in sweep_bh_for_rgrps() local
1618 ret = gfs2_meta_inode_buffer(ip, &dibh); in sweep_bh_for_rgrps()
1626 gfs2_trans_add_meta(ip->i_gl, dibh); in sweep_bh_for_rgrps()
1627 gfs2_dinode_out(ip, dibh->b_data); in sweep_bh_for_rgrps()
1628 brelse(dibh); in sweep_bh_for_rgrps()
1751 struct buffer_head *dibh, *bh; in punch_hole() local
1821 ret = gfs2_meta_inode_buffer(ip, &dibh); in punch_hole()
1825 mp.mp_bh[0] = dibh; in punch_hole()
1990 gfs2_trans_add_meta(ip->i_gl, dibh); in punch_hole()
1991 gfs2_dinode_out(ip, dibh->b_data); in punch_hole()
2013 struct buffer_head *dibh; in trunc_end() local
2022 error = gfs2_meta_inode_buffer(ip, &dibh); in trunc_end()
2029 gfs2_buffer_clear_tail(dibh, sizeof(struct gfs2_dinode)); in trunc_end()
2035 gfs2_trans_add_meta(ip->i_gl, dibh); in trunc_end()
2036 gfs2_dinode_out(ip, dibh->b_data); in trunc_end()
2037 brelse(dibh); in trunc_end()
2107 struct buffer_head *dibh; in do_grow() local
2136 error = gfs2_meta_inode_buffer(ip, &dibh); in do_grow()
2142 gfs2_trans_add_meta(ip->i_gl, dibh); in do_grow()
2143 gfs2_dinode_out(ip, dibh->b_data); in do_grow()
2144 brelse(dibh); in do_grow()
2378 struct buffer_head *dibh; in stuffed_zero_range() local
2386 error = gfs2_meta_inode_buffer(ip, &dibh); in stuffed_zero_range()
2389 gfs2_trans_add_meta(ip->i_gl, dibh); in stuffed_zero_range()
2390 memset(dibh->b_data + sizeof(struct gfs2_dinode) + offset, 0, in stuffed_zero_range()
2392 brelse(dibh); in stuffed_zero_range()