Lines Matching refs:dibh
55 static int gfs2_unstuffer_page(struct gfs2_inode *ip, struct buffer_head *dibh, in gfs2_unstuffer_page() argument
67 memcpy(kaddr, dibh->b_data + sizeof(struct gfs2_dinode), dsize); in gfs2_unstuffer_page()
97 struct buffer_head *bh, *dibh; in __gfs2_unstuff_inode() local
103 error = gfs2_meta_inode_buffer(ip, &dibh); in __gfs2_unstuff_inode()
121 dibh, sizeof(struct gfs2_dinode)); in __gfs2_unstuff_inode()
124 error = gfs2_unstuffer_page(ip, dibh, block, page); in __gfs2_unstuff_inode()
132 gfs2_trans_add_meta(ip->i_gl, dibh); in __gfs2_unstuff_inode()
133 di = (struct gfs2_dinode *)dibh->b_data; in __gfs2_unstuff_inode()
134 gfs2_buffer_clear_tail(dibh, sizeof(struct gfs2_dinode)); in __gfs2_unstuff_inode()
146 brelse(dibh); in __gfs2_unstuff_inode()
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()
889 iomap->inline_data = dibh->b_data + sizeof(struct gfs2_dinode); in __gfs2_iomap_get()
1344 struct buffer_head *dibh = NULL; in trunc_start() local
1366 error = gfs2_meta_inode_buffer(ip, &dibh); in trunc_start()
1370 gfs2_trans_add_meta(ip->i_gl, dibh); in trunc_start()
1373 gfs2_buffer_clear_tail(dibh, sizeof(struct gfs2_dinode) + newsize); in trunc_start()
1379 gfs2_dinode_out(ip, dibh->b_data); in trunc_start()
1387 brelse(dibh); in trunc_start()
1567 struct buffer_head *dibh; in sweep_bh_for_rgrps() local
1569 ret = gfs2_meta_inode_buffer(ip, &dibh); in sweep_bh_for_rgrps()
1577 gfs2_trans_add_meta(ip->i_gl, dibh); in sweep_bh_for_rgrps()
1578 gfs2_dinode_out(ip, dibh->b_data); in sweep_bh_for_rgrps()
1579 brelse(dibh); in sweep_bh_for_rgrps()
1705 struct buffer_head *dibh, *bh; in punch_hole() local
1775 ret = gfs2_meta_inode_buffer(ip, &dibh); in punch_hole()
1779 mp.mp_bh[0] = dibh; in punch_hole()
1943 gfs2_trans_add_meta(ip->i_gl, dibh); in punch_hole()
1944 gfs2_dinode_out(ip, dibh->b_data); in punch_hole()
1966 struct buffer_head *dibh; in trunc_end() local
1975 error = gfs2_meta_inode_buffer(ip, &dibh); in trunc_end()
1982 gfs2_buffer_clear_tail(dibh, sizeof(struct gfs2_dinode)); in trunc_end()
1988 gfs2_trans_add_meta(ip->i_gl, dibh); in trunc_end()
1989 gfs2_dinode_out(ip, dibh->b_data); in trunc_end()
1990 brelse(dibh); in trunc_end()
2060 struct buffer_head *dibh; in do_grow() local
2089 error = gfs2_meta_inode_buffer(ip, &dibh); in do_grow()
2095 gfs2_trans_add_meta(ip->i_gl, dibh); in do_grow()
2096 gfs2_dinode_out(ip, dibh->b_data); in do_grow()
2097 brelse(dibh); in do_grow()
2335 struct buffer_head *dibh; in stuffed_zero_range() local
2343 error = gfs2_meta_inode_buffer(ip, &dibh); in stuffed_zero_range()
2346 gfs2_trans_add_meta(ip->i_gl, dibh); in stuffed_zero_range()
2347 memset(dibh->b_data + sizeof(struct gfs2_dinode) + offset, 0, in stuffed_zero_range()
2349 brelse(dibh); in stuffed_zero_range()