Lines Matching refs:di_bh

395 	struct buffer_head *di_bh = NULL;  in ocfs2_find_entry_id()  local
399 ret = ocfs2_read_inode_block(dir, &di_bh); in ocfs2_find_entry_id()
405 di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_find_entry_id()
408 found = ocfs2_search_dirblock(di_bh, dir, name, namelen, 0, in ocfs2_find_entry_id()
411 return di_bh; in ocfs2_find_entry_id()
413 brelse(di_bh); in ocfs2_find_entry_id()
1008 struct buffer_head *di_bh = NULL; in ocfs2_find_entry_dx() local
1013 ret = ocfs2_read_inode_block(dir, &di_bh); in ocfs2_find_entry_dx()
1019 di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_find_entry_dx()
1038 brelse(di_bh); in ocfs2_find_entry_dx()
1351 struct buffer_head *di_bh = NULL; in ocfs2_delete_entry_id() local
1355 ret = ocfs2_read_inode_block(dir, &di_bh); in ocfs2_delete_entry_id()
1361 di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_delete_entry_id()
1367 brelse(di_bh); in ocfs2_delete_entry_id()
1739 struct buffer_head *di_bh = NULL; in ocfs2_dir_foreach_blk_id() local
1744 ret = ocfs2_read_inode_block(inode, &di_bh); in ocfs2_dir_foreach_blk_id()
1751 di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_dir_foreach_blk_id()
1779 if (!ocfs2_check_dir_entry(inode, de, di_bh, ctx->pos)) { in ocfs2_dir_foreach_blk_id()
1794 brelse(di_bh); in ocfs2_dir_foreach_blk_id()
2076 struct buffer_head *di_bh = NULL; in ocfs2_empty_dir_dx() local
2083 ret = ocfs2_read_inode_block(inode, &di_bh); in ocfs2_empty_dir_dx()
2088 di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_empty_dir_dx()
2101 brelse(di_bh); in ocfs2_empty_dir_dx()
2183 struct buffer_head *di_bh) in ocfs2_fill_new_dir_id() argument
2186 struct ocfs2_dinode *di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_fill_new_dir_id()
2190 ret = ocfs2_journal_access_di(handle, INODE_CACHE(inode), di_bh, in ocfs2_fill_new_dir_id()
2198 ocfs2_journal_dirty(handle, di_bh); in ocfs2_fill_new_dir_id()
2204 ret = ocfs2_mark_inode_dirty(handle, inode, di_bh); in ocfs2_fill_new_dir_id()
2284 struct buffer_head *di_bh, in ocfs2_dx_dir_attach_index() argument
2291 struct ocfs2_dinode *di = (struct ocfs2_dinode *) di_bh->b_data; in ocfs2_dx_dir_attach_index()
2350 ret = ocfs2_journal_access_di(handle, INODE_CACHE(dir), di_bh, in ocfs2_dx_dir_attach_index()
2364 ocfs2_journal_dirty(handle, di_bh); in ocfs2_dx_dir_attach_index()
2511 struct buffer_head *di_bh, in ocfs2_fill_new_dir_dx() argument
2533 ret = ocfs2_fill_new_dir_el(osb, handle, parent, inode, di_bh, in ocfs2_fill_new_dir_dx()
2540 ret = ocfs2_dx_dir_attach_index(osb, handle, inode, di_bh, leaf_bh, in ocfs2_fill_new_dir_dx()
2677 struct buffer_head *di_bh) in ocfs2_new_dx_should_be_inline() argument
2682 struct ocfs2_dinode *di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_new_dx_should_be_inline()
2764 static int ocfs2_expand_inline_dir(struct inode *dir, struct buffer_head *di_bh, in ocfs2_expand_inline_dir() argument
2782 struct ocfs2_dinode *di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_expand_inline_dir()
2788 ocfs2_init_dinode_extent_tree(&et, INODE_CACHE(dir), di_bh); in ocfs2_expand_inline_dir()
2798 dx_inline = ocfs2_new_dx_should_be_inline(dir, di_bh); in ocfs2_expand_inline_dir()
2950 ret = ocfs2_journal_access_di(handle, INODE_CACHE(dir), di_bh, in ocfs2_expand_inline_dir()
2989 ocfs2_journal_dirty(handle, di_bh); in ocfs2_expand_inline_dir()
2992 ret = ocfs2_dx_dir_attach_index(osb, handle, dir, di_bh, in ocfs2_expand_inline_dir()
3335 static int ocfs2_find_dir_space_id(struct inode *dir, struct buffer_head *di_bh, in ocfs2_find_dir_space_id() argument
3342 struct ocfs2_dinode *di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_find_dir_space_id()
3364 if (!ocfs2_check_dir_entry(dir, de, di_bh, offset)) { in ocfs2_find_dir_space_id()
3380 *ret_de_bh = di_bh; in ocfs2_find_dir_space_id()
3880 struct buffer_head *di_bh, in ocfs2_find_dir_space_dx() argument
4132 struct buffer_head *di_bh, in ocfs2_prepare_dx_dir_for_insert() argument
4141 struct ocfs2_dinode *di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_prepare_dx_dir_for_insert()
4181 ret = ocfs2_find_dir_space_dx(osb, dir, di_bh, dx_root_bh, name, in ocfs2_prepare_dx_dir_for_insert()
4206 ret = ocfs2_extend_dir(osb, dir, di_bh, 1, lookup, &leaf_bh); in ocfs2_prepare_dx_dir_for_insert()
4311 struct buffer_head *di_bh, in ocfs2_dx_dir_remove_index() argument
4316 struct ocfs2_dinode *di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_dx_dir_remove_index()
4350 ret = ocfs2_journal_access_di(handle, INODE_CACHE(dir), di_bh, in ocfs2_dx_dir_remove_index()
4364 ocfs2_journal_dirty(handle, di_bh); in ocfs2_dx_dir_remove_index()
4391 int ocfs2_dx_dir_truncate(struct inode *dir, struct buffer_head *di_bh) in ocfs2_dx_dir_truncate() argument
4400 struct ocfs2_dinode *di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_dx_dir_truncate()
4446 ret = ocfs2_dx_dir_remove_index(dir, di_bh, dx_root_bh); in ocfs2_dx_dir_truncate()