Lines Matching refs:dx_root_bh

172 				     struct buffer_head *dx_root_bh,  in ocfs2_dx_dir_link_trailer()  argument
179 ret = ocfs2_journal_access_dr(handle, INODE_CACHE(dir), dx_root_bh, in ocfs2_dx_dir_link_trailer()
186 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data; in ocfs2_dx_dir_link_trailer()
191 ocfs2_journal_dirty(handle, dx_root_bh); in ocfs2_dx_dir_link_trailer()
611 struct buffer_head **dx_root_bh) in ocfs2_read_dx_root() argument
615 struct buffer_head *tmp = *dx_root_bh; in ocfs2_read_dx_root()
621 if (!ret && !*dx_root_bh) in ocfs2_read_dx_root()
622 *dx_root_bh = tmp; in ocfs2_read_dx_root()
1030 struct buffer_head *dx_root_bh = NULL; in ocfs2_find_entry_dx() local
1041 ret = ocfs2_read_dx_root(dir, di, &dx_root_bh); in ocfs2_find_entry_dx()
1046 dx_root = (struct ocfs2_dx_root_block *) dx_root_bh->b_data; in ocfs2_find_entry_dx()
1055 lookup->dl_dx_root_bh = dx_root_bh; in ocfs2_find_entry_dx()
1056 dx_root_bh = NULL; in ocfs2_find_entry_dx()
1059 brelse(dx_root_bh); in ocfs2_find_entry_dx()
1253 struct buffer_head *dx_root_bh = lookup->dl_dx_root_bh; in ocfs2_delete_entry_dx() local
1272 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data; in ocfs2_delete_entry_dx()
1315 ret = ocfs2_journal_access_dr(handle, INODE_CACHE(dir), dx_root_bh, in ocfs2_delete_entry_dx()
1347 ocfs2_journal_dirty(handle, dx_root_bh); in ocfs2_delete_entry_dx()
1354 ocfs2_journal_dirty(handle, dx_root_bh); in ocfs2_delete_entry_dx()
1510 struct buffer_head *dx_root_bh = lookup->dl_dx_root_bh; in ocfs2_dx_dir_insert() local
1512 ret = ocfs2_journal_access_dr(handle, INODE_CACHE(dir), dx_root_bh, in ocfs2_dx_dir_insert()
1534 ocfs2_journal_dirty(handle, dx_root_bh); in ocfs2_dx_dir_insert()
2105 struct buffer_head *dx_root_bh = NULL; in ocfs2_empty_dir_dx() local
2118 ret = ocfs2_read_dx_root(inode, di, &dx_root_bh); in ocfs2_empty_dir_dx()
2123 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data; in ocfs2_empty_dir_dx()
2130 brelse(dx_root_bh); in ocfs2_empty_dir_dx()
2323 struct buffer_head *dx_root_bh = NULL; in ocfs2_dx_dir_attach_index() local
2339 dx_root_bh = sb_getblk(osb->sb, dr_blkno); in ocfs2_dx_dir_attach_index()
2340 if (dx_root_bh == NULL) { in ocfs2_dx_dir_attach_index()
2344 ocfs2_set_new_buffer_uptodate(INODE_CACHE(dir), dx_root_bh); in ocfs2_dx_dir_attach_index()
2346 ret = ocfs2_journal_access_dr(handle, INODE_CACHE(dir), dx_root_bh, in ocfs2_dx_dir_attach_index()
2353 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data; in ocfs2_dx_dir_attach_index()
2376 ocfs2_journal_dirty(handle, dx_root_bh); in ocfs2_dx_dir_attach_index()
2394 *ret_dx_root_bh = dx_root_bh; in ocfs2_dx_dir_attach_index()
2395 dx_root_bh = NULL; in ocfs2_dx_dir_attach_index()
2398 brelse(dx_root_bh); in ocfs2_dx_dir_attach_index()
2545 struct buffer_head *dx_root_bh = NULL; in ocfs2_fill_new_dir_dx() local
2569 meta_ac, 1, 2, &dx_root_bh); in ocfs2_fill_new_dir_dx()
2574 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data; in ocfs2_fill_new_dir_dx()
2585 brelse(dx_root_bh); in ocfs2_fill_new_dir_dx()
2662 struct buffer_head *dx_root_bh, in ocfs2_dx_dir_index_root_block() argument
2671 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data; in ocfs2_dx_dir_index_root_block()
2808 struct buffer_head *dx_root_bh = NULL; in ocfs2_expand_inline_dir() local
3022 num_dx_entries, &dx_root_bh); in ocfs2_expand_inline_dir()
3029 ocfs2_dx_dir_index_root_block(dir, dx_root_bh, in ocfs2_expand_inline_dir()
3034 dx_root_bh); in ocfs2_expand_inline_dir()
3079 lookup->dl_dx_root_bh = dx_root_bh; in ocfs2_expand_inline_dir()
3080 dx_root_bh = NULL; in ocfs2_expand_inline_dir()
3103 brelse(dx_root_bh); in ocfs2_expand_inline_dir()
3193 struct buffer_head *dx_root_bh = lookup->dl_dx_root_bh; in ocfs2_extend_dir() local
3200 BUG_ON(dx_root_bh); in ocfs2_extend_dir()
3212 dx_root_bh = lookup->dl_dx_root_bh; in ocfs2_extend_dir()
3323 dx_root_bh, new_bh); in ocfs2_extend_dir()
3714 struct buffer_head *dx_root_bh, in ocfs2_dx_dir_rebalance() argument
3736 ocfs2_init_dx_root_extent_tree(&et, INODE_CACHE(dir), dx_root_bh); in ocfs2_dx_dir_rebalance()
3738 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data; in ocfs2_dx_dir_rebalance()
3910 struct buffer_head *dx_root_bh, in ocfs2_find_dir_space_dx() argument
3921 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data; in ocfs2_find_dir_space_dx()
3953 ret = ocfs2_dx_dir_rebalance(osb, dir, dx_root_bh, dx_leaf_bh, in ocfs2_find_dir_space_dx()
3982 struct buffer_head *dx_root_bh, in ocfs2_search_dx_free_list() argument
3993 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data; in ocfs2_search_dx_free_list()
4030 struct buffer_head *dx_root_bh) in ocfs2_expand_inline_dx_root() argument
4075 ret = ocfs2_journal_access_dr(handle, INODE_CACHE(dir), dx_root_bh, in ocfs2_expand_inline_dx_root()
4093 dx_root = (struct ocfs2_dx_root_block *) dx_root_bh->b_data; in ocfs2_expand_inline_dx_root()
4117 ocfs2_init_dx_root_extent_tree(&et, INODE_CACHE(dir), dx_root_bh); in ocfs2_expand_inline_dx_root()
4124 ocfs2_journal_dirty(handle, dx_root_bh); in ocfs2_expand_inline_dx_root()
4145 static int ocfs2_inline_dx_has_space(struct buffer_head *dx_root_bh) in ocfs2_inline_dx_has_space() argument
4150 dx_root = (struct ocfs2_dx_root_block *) dx_root_bh->b_data; in ocfs2_inline_dx_has_space()
4168 struct buffer_head *dx_root_bh = NULL; in ocfs2_prepare_dx_dir_for_insert() local
4173 ret = ocfs2_read_dx_root(dir, di, &dx_root_bh); in ocfs2_prepare_dx_dir_for_insert()
4179 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data; in ocfs2_prepare_dx_dir_for_insert()
4187 ret = ocfs2_inline_dx_has_space(dx_root_bh); in ocfs2_prepare_dx_dir_for_insert()
4197 ret = ocfs2_expand_inline_dx_root(dir, dx_root_bh); in ocfs2_prepare_dx_dir_for_insert()
4210 ret = ocfs2_find_dir_space_dx(osb, dir, di_bh, dx_root_bh, name, in ocfs2_prepare_dx_dir_for_insert()
4224 ret = ocfs2_search_dx_free_list(dir, dx_root_bh, namelen, lookup); in ocfs2_prepare_dx_dir_for_insert()
4231 lookup->dl_dx_root_bh = dx_root_bh; in ocfs2_prepare_dx_dir_for_insert()
4252 brelse(dx_root_bh); in ocfs2_prepare_dx_dir_for_insert()
4341 struct buffer_head *dx_root_bh) in ocfs2_dx_dir_remove_index() argument
4354 dx_root = (struct ocfs2_dx_root_block *) dx_root_bh->b_data; in ocfs2_dx_dir_remove_index()
4427 struct buffer_head *dx_root_bh = NULL; in ocfs2_dx_dir_truncate() local
4438 ret = ocfs2_read_dx_root(dir, di, &dx_root_bh); in ocfs2_dx_dir_truncate()
4443 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data; in ocfs2_dx_dir_truncate()
4448 ocfs2_init_dx_root_extent_tree(&et, INODE_CACHE(dir), dx_root_bh); in ocfs2_dx_dir_truncate()
4475 ret = ocfs2_dx_dir_remove_index(dir, di_bh, dx_root_bh); in ocfs2_dx_dir_truncate()
4481 ocfs2_remove_from_cache(INODE_CACHE(dir), dx_root_bh); in ocfs2_dx_dir_truncate()
4486 brelse(dx_root_bh); in ocfs2_dx_dir_truncate()