Lines Matching refs:dibh
55 static int gfs2_unstuffer_page(struct gfs2_inode *ip, struct buffer_head *dibh, in gfs2_unstuffer_page() argument
76 memcpy(kaddr, dibh->b_data + sizeof(struct gfs2_dinode), dsize); in gfs2_unstuffer_page()
121 struct buffer_head *bh, *dibh; in gfs2_unstuff_dinode() local
129 error = gfs2_meta_inode_buffer(ip, &dibh); in gfs2_unstuff_dinode()
147 dibh, sizeof(struct gfs2_dinode)); in gfs2_unstuff_dinode()
150 error = gfs2_unstuffer_page(ip, dibh, block, page); in gfs2_unstuff_dinode()
158 gfs2_trans_add_meta(ip->i_gl, dibh); in gfs2_unstuff_dinode()
159 di = (struct gfs2_dinode *)dibh->b_data; in gfs2_unstuff_dinode()
160 gfs2_buffer_clear_tail(dibh, sizeof(struct gfs2_dinode)); in gfs2_unstuff_dinode()
172 brelse(dibh); in gfs2_unstuff_dinode()
666 struct buffer_head *dibh = mp->mp_bh[0]; in gfs2_iomap_alloc() local
677 BUG_ON(dibh == NULL); in gfs2_iomap_alloc()
680 gfs2_trans_add_meta(ip->i_gl, dibh); in gfs2_iomap_alloc()
718 ptr = (__be64 *)(dibh->b_data + in gfs2_iomap_alloc()
729 dibh, sizeof(struct gfs2_dinode)); in gfs2_iomap_alloc()
730 gfs2_buffer_clear_tail(dibh, in gfs2_iomap_alloc()
777 gfs2_dinode_out(ip, dibh->b_data); in gfs2_iomap_alloc()
853 struct buffer_head *dibh = NULL, *bh; in gfs2_iomap_get() local
861 ret = gfs2_meta_inode_buffer(ip, &dibh); in gfs2_iomap_get()
864 mp->mp_bh[0] = dibh; in gfs2_iomap_get()
890 iomap->inline_data = dibh->b_data + sizeof(struct gfs2_dinode); in gfs2_iomap_get()
1409 struct buffer_head *dibh = NULL; in trunc_start() local
1421 error = gfs2_meta_inode_buffer(ip, &dibh); in trunc_start()
1425 gfs2_trans_add_meta(ip->i_gl, dibh); in trunc_start()
1428 gfs2_buffer_clear_tail(dibh, sizeof(struct gfs2_dinode) + newsize); in trunc_start()
1443 gfs2_dinode_out(ip, dibh->b_data); in trunc_start()
1451 brelse(dibh); in trunc_start()
1620 struct buffer_head *dibh; in sweep_bh_for_rgrps() local
1622 ret = gfs2_meta_inode_buffer(ip, &dibh); in sweep_bh_for_rgrps()
1630 gfs2_trans_add_meta(ip->i_gl, dibh); in sweep_bh_for_rgrps()
1631 gfs2_dinode_out(ip, dibh->b_data); in sweep_bh_for_rgrps()
1632 brelse(dibh); in sweep_bh_for_rgrps()
1755 struct buffer_head *dibh, *bh; in punch_hole() local
1825 ret = gfs2_meta_inode_buffer(ip, &dibh); in punch_hole()
1829 mp.mp_bh[0] = dibh; in punch_hole()
1993 gfs2_trans_add_meta(ip->i_gl, dibh); in punch_hole()
1994 gfs2_dinode_out(ip, dibh->b_data); in punch_hole()
2016 struct buffer_head *dibh; in trunc_end() local
2025 error = gfs2_meta_inode_buffer(ip, &dibh); in trunc_end()
2032 gfs2_buffer_clear_tail(dibh, sizeof(struct gfs2_dinode)); in trunc_end()
2038 gfs2_trans_add_meta(ip->i_gl, dibh); in trunc_end()
2039 gfs2_dinode_out(ip, dibh->b_data); in trunc_end()
2040 brelse(dibh); in trunc_end()
2110 struct buffer_head *dibh; in do_grow() local
2139 error = gfs2_meta_inode_buffer(ip, &dibh); in do_grow()
2145 gfs2_trans_add_meta(ip->i_gl, dibh); in do_grow()
2146 gfs2_dinode_out(ip, dibh->b_data); in do_grow()
2147 brelse(dibh); in do_grow()
2384 struct buffer_head *dibh; in stuffed_zero_range() local
2392 error = gfs2_meta_inode_buffer(ip, &dibh); in stuffed_zero_range()
2395 gfs2_trans_add_meta(ip->i_gl, dibh); in stuffed_zero_range()
2396 memset(dibh->b_data + sizeof(struct gfs2_dinode) + offset, 0, in stuffed_zero_range()
2398 brelse(dibh); in stuffed_zero_range()