Lines Matching refs:dx_root_bh

152 				     struct buffer_head *dx_root_bh,  in ocfs2_dx_dir_link_trailer()  argument
159 ret = ocfs2_journal_access_dr(handle, INODE_CACHE(dir), dx_root_bh, in ocfs2_dx_dir_link_trailer()
166 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data; in ocfs2_dx_dir_link_trailer()
171 ocfs2_journal_dirty(handle, dx_root_bh); in ocfs2_dx_dir_link_trailer()
597 struct buffer_head **dx_root_bh) in ocfs2_read_dx_root() argument
601 struct buffer_head *tmp = *dx_root_bh; in ocfs2_read_dx_root()
607 if (!ret && !*dx_root_bh) in ocfs2_read_dx_root()
608 *dx_root_bh = tmp; in ocfs2_read_dx_root()
1016 struct buffer_head *dx_root_bh = NULL; in ocfs2_find_entry_dx() local
1027 ret = ocfs2_read_dx_root(dir, di, &dx_root_bh); in ocfs2_find_entry_dx()
1032 dx_root = (struct ocfs2_dx_root_block *) dx_root_bh->b_data; in ocfs2_find_entry_dx()
1041 lookup->dl_dx_root_bh = dx_root_bh; in ocfs2_find_entry_dx()
1042 dx_root_bh = NULL; in ocfs2_find_entry_dx()
1045 brelse(dx_root_bh); in ocfs2_find_entry_dx()
1239 struct buffer_head *dx_root_bh = lookup->dl_dx_root_bh; in ocfs2_delete_entry_dx() local
1258 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data; in ocfs2_delete_entry_dx()
1301 ret = ocfs2_journal_access_dr(handle, INODE_CACHE(dir), dx_root_bh, in ocfs2_delete_entry_dx()
1333 ocfs2_journal_dirty(handle, dx_root_bh); in ocfs2_delete_entry_dx()
1340 ocfs2_journal_dirty(handle, dx_root_bh); in ocfs2_delete_entry_dx()
1496 struct buffer_head *dx_root_bh = lookup->dl_dx_root_bh; in ocfs2_dx_dir_insert() local
1498 ret = ocfs2_journal_access_dr(handle, INODE_CACHE(dir), dx_root_bh, in ocfs2_dx_dir_insert()
1520 ocfs2_journal_dirty(handle, dx_root_bh); in ocfs2_dx_dir_insert()
2085 struct buffer_head *dx_root_bh = NULL; in ocfs2_empty_dir_dx() local
2098 ret = ocfs2_read_dx_root(inode, di, &dx_root_bh); in ocfs2_empty_dir_dx()
2103 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data; in ocfs2_empty_dir_dx()
2110 brelse(dx_root_bh); in ocfs2_empty_dir_dx()
2303 struct buffer_head *dx_root_bh = NULL; in ocfs2_dx_dir_attach_index() local
2319 dx_root_bh = sb_getblk(osb->sb, dr_blkno); in ocfs2_dx_dir_attach_index()
2320 if (dx_root_bh == NULL) { in ocfs2_dx_dir_attach_index()
2324 ocfs2_set_new_buffer_uptodate(INODE_CACHE(dir), dx_root_bh); in ocfs2_dx_dir_attach_index()
2326 ret = ocfs2_journal_access_dr(handle, INODE_CACHE(dir), dx_root_bh, in ocfs2_dx_dir_attach_index()
2333 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data; in ocfs2_dx_dir_attach_index()
2356 ocfs2_journal_dirty(handle, dx_root_bh); in ocfs2_dx_dir_attach_index()
2374 *ret_dx_root_bh = dx_root_bh; in ocfs2_dx_dir_attach_index()
2375 dx_root_bh = NULL; in ocfs2_dx_dir_attach_index()
2378 brelse(dx_root_bh); in ocfs2_dx_dir_attach_index()
2525 struct buffer_head *dx_root_bh = NULL; in ocfs2_fill_new_dir_dx() local
2549 meta_ac, 1, 2, &dx_root_bh); in ocfs2_fill_new_dir_dx()
2554 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data; in ocfs2_fill_new_dir_dx()
2565 brelse(dx_root_bh); in ocfs2_fill_new_dir_dx()
2642 struct buffer_head *dx_root_bh, in ocfs2_dx_dir_index_root_block() argument
2651 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data; in ocfs2_dx_dir_index_root_block()
2788 struct buffer_head *dx_root_bh = NULL; in ocfs2_expand_inline_dir() local
3002 num_dx_entries, &dx_root_bh); in ocfs2_expand_inline_dir()
3009 ocfs2_dx_dir_index_root_block(dir, dx_root_bh, in ocfs2_expand_inline_dir()
3014 dx_root_bh); in ocfs2_expand_inline_dir()
3059 lookup->dl_dx_root_bh = dx_root_bh; in ocfs2_expand_inline_dir()
3060 dx_root_bh = NULL; in ocfs2_expand_inline_dir()
3083 brelse(dx_root_bh); in ocfs2_expand_inline_dir()
3173 struct buffer_head *dx_root_bh = lookup->dl_dx_root_bh; in ocfs2_extend_dir() local
3180 BUG_ON(dx_root_bh); in ocfs2_extend_dir()
3192 dx_root_bh = lookup->dl_dx_root_bh; in ocfs2_extend_dir()
3303 dx_root_bh, new_bh); in ocfs2_extend_dir()
3686 struct buffer_head *dx_root_bh, in ocfs2_dx_dir_rebalance() argument
3708 ocfs2_init_dx_root_extent_tree(&et, INODE_CACHE(dir), dx_root_bh); in ocfs2_dx_dir_rebalance()
3710 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data; in ocfs2_dx_dir_rebalance()
3882 struct buffer_head *dx_root_bh, in ocfs2_find_dir_space_dx() argument
3893 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data; in ocfs2_find_dir_space_dx()
3925 ret = ocfs2_dx_dir_rebalance(osb, dir, dx_root_bh, dx_leaf_bh, in ocfs2_find_dir_space_dx()
3954 struct buffer_head *dx_root_bh, in ocfs2_search_dx_free_list() argument
3965 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data; in ocfs2_search_dx_free_list()
4002 struct buffer_head *dx_root_bh) in ocfs2_expand_inline_dx_root() argument
4047 ret = ocfs2_journal_access_dr(handle, INODE_CACHE(dir), dx_root_bh, in ocfs2_expand_inline_dx_root()
4065 dx_root = (struct ocfs2_dx_root_block *) dx_root_bh->b_data; in ocfs2_expand_inline_dx_root()
4089 ocfs2_init_dx_root_extent_tree(&et, INODE_CACHE(dir), dx_root_bh); in ocfs2_expand_inline_dx_root()
4096 ocfs2_journal_dirty(handle, dx_root_bh); in ocfs2_expand_inline_dx_root()
4117 static int ocfs2_inline_dx_has_space(struct buffer_head *dx_root_bh) in ocfs2_inline_dx_has_space() argument
4122 dx_root = (struct ocfs2_dx_root_block *) dx_root_bh->b_data; in ocfs2_inline_dx_has_space()
4140 struct buffer_head *dx_root_bh = NULL; in ocfs2_prepare_dx_dir_for_insert() local
4145 ret = ocfs2_read_dx_root(dir, di, &dx_root_bh); in ocfs2_prepare_dx_dir_for_insert()
4151 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data; in ocfs2_prepare_dx_dir_for_insert()
4159 ret = ocfs2_inline_dx_has_space(dx_root_bh); in ocfs2_prepare_dx_dir_for_insert()
4169 ret = ocfs2_expand_inline_dx_root(dir, dx_root_bh); in ocfs2_prepare_dx_dir_for_insert()
4182 ret = ocfs2_find_dir_space_dx(osb, dir, di_bh, dx_root_bh, name, in ocfs2_prepare_dx_dir_for_insert()
4196 ret = ocfs2_search_dx_free_list(dir, dx_root_bh, namelen, lookup); in ocfs2_prepare_dx_dir_for_insert()
4203 lookup->dl_dx_root_bh = dx_root_bh; in ocfs2_prepare_dx_dir_for_insert()
4224 brelse(dx_root_bh); in ocfs2_prepare_dx_dir_for_insert()
4307 struct buffer_head *dx_root_bh) in ocfs2_dx_dir_remove_index() argument
4320 dx_root = (struct ocfs2_dx_root_block *) dx_root_bh->b_data; in ocfs2_dx_dir_remove_index()
4393 struct buffer_head *dx_root_bh = NULL; in ocfs2_dx_dir_truncate() local
4404 ret = ocfs2_read_dx_root(dir, di, &dx_root_bh); in ocfs2_dx_dir_truncate()
4409 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data; in ocfs2_dx_dir_truncate()
4414 ocfs2_init_dx_root_extent_tree(&et, INODE_CACHE(dir), dx_root_bh); in ocfs2_dx_dir_truncate()
4441 ret = ocfs2_dx_dir_remove_index(dir, di_bh, dx_root_bh); in ocfs2_dx_dir_truncate()
4447 ocfs2_remove_from_cache(INODE_CACHE(dir), dx_root_bh); in ocfs2_dx_dir_truncate()
4452 brelse(dx_root_bh); in ocfs2_dx_dir_truncate()