Lines Matching refs:di_bh
414 struct buffer_head *di_bh = NULL; in ocfs2_find_entry_id() local
418 ret = ocfs2_read_inode_block(dir, &di_bh); in ocfs2_find_entry_id()
424 di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_find_entry_id()
427 found = ocfs2_search_dirblock(di_bh, dir, name, namelen, 0, in ocfs2_find_entry_id()
430 return di_bh; in ocfs2_find_entry_id()
432 brelse(di_bh); in ocfs2_find_entry_id()
1037 struct buffer_head *di_bh = NULL; in ocfs2_find_entry_dx() local
1042 ret = ocfs2_read_inode_block(dir, &di_bh); in ocfs2_find_entry_dx()
1048 di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_find_entry_dx()
1067 brelse(di_bh); in ocfs2_find_entry_dx()
1380 struct buffer_head *di_bh = NULL; in ocfs2_delete_entry_id() local
1384 ret = ocfs2_read_inode_block(dir, &di_bh); in ocfs2_delete_entry_id()
1390 di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_delete_entry_id()
1396 brelse(di_bh); in ocfs2_delete_entry_id()
1768 struct buffer_head *di_bh = NULL; in ocfs2_dir_foreach_blk_id() local
1773 ret = ocfs2_read_inode_block(inode, &di_bh); in ocfs2_dir_foreach_blk_id()
1780 di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_dir_foreach_blk_id()
1808 if (!ocfs2_check_dir_entry(inode, de, di_bh, ctx->pos)) { in ocfs2_dir_foreach_blk_id()
1827 brelse(di_bh); in ocfs2_dir_foreach_blk_id()
2114 struct buffer_head *di_bh = NULL; in ocfs2_empty_dir_dx() local
2121 ret = ocfs2_read_inode_block(inode, &di_bh); in ocfs2_empty_dir_dx()
2126 di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_empty_dir_dx()
2139 brelse(di_bh); in ocfs2_empty_dir_dx()
2221 struct buffer_head *di_bh) in ocfs2_fill_new_dir_id() argument
2224 struct ocfs2_dinode *di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_fill_new_dir_id()
2228 ret = ocfs2_journal_access_di(handle, INODE_CACHE(inode), di_bh, in ocfs2_fill_new_dir_id()
2236 ocfs2_journal_dirty(handle, di_bh); in ocfs2_fill_new_dir_id()
2242 ret = ocfs2_mark_inode_dirty(handle, inode, di_bh); in ocfs2_fill_new_dir_id()
2322 struct buffer_head *di_bh, in ocfs2_dx_dir_attach_index() argument
2329 struct ocfs2_dinode *di = (struct ocfs2_dinode *) di_bh->b_data; in ocfs2_dx_dir_attach_index()
2388 ret = ocfs2_journal_access_di(handle, INODE_CACHE(dir), di_bh, in ocfs2_dx_dir_attach_index()
2402 ocfs2_journal_dirty(handle, di_bh); in ocfs2_dx_dir_attach_index()
2549 struct buffer_head *di_bh, in ocfs2_fill_new_dir_dx() argument
2571 ret = ocfs2_fill_new_dir_el(osb, handle, parent, inode, di_bh, in ocfs2_fill_new_dir_dx()
2578 ret = ocfs2_dx_dir_attach_index(osb, handle, inode, di_bh, leaf_bh, in ocfs2_fill_new_dir_dx()
2715 struct buffer_head *di_bh) in ocfs2_new_dx_should_be_inline() argument
2720 struct ocfs2_dinode *di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_new_dx_should_be_inline()
2802 static int ocfs2_expand_inline_dir(struct inode *dir, struct buffer_head *di_bh, in ocfs2_expand_inline_dir() argument
2820 struct ocfs2_dinode *di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_expand_inline_dir()
2826 ocfs2_init_dinode_extent_tree(&et, INODE_CACHE(dir), di_bh); in ocfs2_expand_inline_dir()
2836 dx_inline = ocfs2_new_dx_should_be_inline(dir, di_bh); in ocfs2_expand_inline_dir()
2988 ret = ocfs2_journal_access_di(handle, INODE_CACHE(dir), di_bh, in ocfs2_expand_inline_dir()
3027 ocfs2_journal_dirty(handle, di_bh); in ocfs2_expand_inline_dir()
3030 ret = ocfs2_dx_dir_attach_index(osb, handle, dir, di_bh, in ocfs2_expand_inline_dir()
3373 static int ocfs2_find_dir_space_id(struct inode *dir, struct buffer_head *di_bh, in ocfs2_find_dir_space_id() argument
3380 struct ocfs2_dinode *di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_find_dir_space_id()
3402 if (!ocfs2_check_dir_entry(dir, de, di_bh, offset)) { in ocfs2_find_dir_space_id()
3418 *ret_de_bh = di_bh; in ocfs2_find_dir_space_id()
3922 struct buffer_head *di_bh, in ocfs2_find_dir_space_dx() argument
4174 struct buffer_head *di_bh, in ocfs2_prepare_dx_dir_for_insert() argument
4183 struct ocfs2_dinode *di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_prepare_dx_dir_for_insert()
4223 ret = ocfs2_find_dir_space_dx(osb, dir, di_bh, dx_root_bh, name, in ocfs2_prepare_dx_dir_for_insert()
4248 ret = ocfs2_extend_dir(osb, dir, di_bh, 1, lookup, &leaf_bh); in ocfs2_prepare_dx_dir_for_insert()
4353 struct buffer_head *di_bh, in ocfs2_dx_dir_remove_index() argument
4358 struct ocfs2_dinode *di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_dx_dir_remove_index()
4392 ret = ocfs2_journal_access_di(handle, INODE_CACHE(dir), di_bh, in ocfs2_dx_dir_remove_index()
4406 ocfs2_journal_dirty(handle, di_bh); in ocfs2_dx_dir_remove_index()
4433 int ocfs2_dx_dir_truncate(struct inode *dir, struct buffer_head *di_bh) in ocfs2_dx_dir_truncate() argument
4442 struct ocfs2_dinode *di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_dx_dir_truncate()
4488 ret = ocfs2_dx_dir_remove_index(dir, di_bh, dx_root_bh); in ocfs2_dx_dir_truncate()