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()
2106 struct buffer_head *dx_root_bh = NULL; in ocfs2_empty_dir_dx() local
2119 ret = ocfs2_read_dx_root(inode, di, &dx_root_bh); in ocfs2_empty_dir_dx()
2124 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data; in ocfs2_empty_dir_dx()
2131 brelse(dx_root_bh); in ocfs2_empty_dir_dx()
2324 struct buffer_head *dx_root_bh = NULL; in ocfs2_dx_dir_attach_index() local
2340 dx_root_bh = sb_getblk(osb->sb, dr_blkno); in ocfs2_dx_dir_attach_index()
2341 if (dx_root_bh == NULL) { in ocfs2_dx_dir_attach_index()
2345 ocfs2_set_new_buffer_uptodate(INODE_CACHE(dir), dx_root_bh); in ocfs2_dx_dir_attach_index()
2347 ret = ocfs2_journal_access_dr(handle, INODE_CACHE(dir), dx_root_bh, in ocfs2_dx_dir_attach_index()
2354 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data; in ocfs2_dx_dir_attach_index()
2377 ocfs2_journal_dirty(handle, dx_root_bh); in ocfs2_dx_dir_attach_index()
2395 *ret_dx_root_bh = dx_root_bh; in ocfs2_dx_dir_attach_index()
2396 dx_root_bh = NULL; in ocfs2_dx_dir_attach_index()
2399 brelse(dx_root_bh); in ocfs2_dx_dir_attach_index()
2546 struct buffer_head *dx_root_bh = NULL; in ocfs2_fill_new_dir_dx() local
2570 meta_ac, 1, 2, &dx_root_bh); in ocfs2_fill_new_dir_dx()
2575 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data; in ocfs2_fill_new_dir_dx()
2586 brelse(dx_root_bh); in ocfs2_fill_new_dir_dx()
2663 struct buffer_head *dx_root_bh, in ocfs2_dx_dir_index_root_block() argument
2672 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data; in ocfs2_dx_dir_index_root_block()
2809 struct buffer_head *dx_root_bh = NULL; in ocfs2_expand_inline_dir() local
3023 num_dx_entries, &dx_root_bh); in ocfs2_expand_inline_dir()
3030 ocfs2_dx_dir_index_root_block(dir, dx_root_bh, in ocfs2_expand_inline_dir()
3035 dx_root_bh); in ocfs2_expand_inline_dir()
3080 lookup->dl_dx_root_bh = dx_root_bh; in ocfs2_expand_inline_dir()
3081 dx_root_bh = NULL; in ocfs2_expand_inline_dir()
3104 brelse(dx_root_bh); in ocfs2_expand_inline_dir()
3194 struct buffer_head *dx_root_bh = lookup->dl_dx_root_bh; in ocfs2_extend_dir() local
3201 BUG_ON(dx_root_bh); in ocfs2_extend_dir()
3213 dx_root_bh = lookup->dl_dx_root_bh; in ocfs2_extend_dir()
3324 dx_root_bh, new_bh); in ocfs2_extend_dir()
3715 struct buffer_head *dx_root_bh, in ocfs2_dx_dir_rebalance() argument
3737 ocfs2_init_dx_root_extent_tree(&et, INODE_CACHE(dir), dx_root_bh); in ocfs2_dx_dir_rebalance()
3739 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data; in ocfs2_dx_dir_rebalance()
3911 struct buffer_head *dx_root_bh, in ocfs2_find_dir_space_dx() argument
3922 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data; in ocfs2_find_dir_space_dx()
3954 ret = ocfs2_dx_dir_rebalance(osb, dir, dx_root_bh, dx_leaf_bh, in ocfs2_find_dir_space_dx()
3983 struct buffer_head *dx_root_bh, in ocfs2_search_dx_free_list() argument
3994 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data; in ocfs2_search_dx_free_list()
4031 struct buffer_head *dx_root_bh) in ocfs2_expand_inline_dx_root() argument
4076 ret = ocfs2_journal_access_dr(handle, INODE_CACHE(dir), dx_root_bh, in ocfs2_expand_inline_dx_root()
4094 dx_root = (struct ocfs2_dx_root_block *) dx_root_bh->b_data; in ocfs2_expand_inline_dx_root()
4118 ocfs2_init_dx_root_extent_tree(&et, INODE_CACHE(dir), dx_root_bh); in ocfs2_expand_inline_dx_root()
4125 ocfs2_journal_dirty(handle, dx_root_bh); in ocfs2_expand_inline_dx_root()
4146 static int ocfs2_inline_dx_has_space(struct buffer_head *dx_root_bh) in ocfs2_inline_dx_has_space() argument
4151 dx_root = (struct ocfs2_dx_root_block *) dx_root_bh->b_data; in ocfs2_inline_dx_has_space()
4169 struct buffer_head *dx_root_bh = NULL; in ocfs2_prepare_dx_dir_for_insert() local
4174 ret = ocfs2_read_dx_root(dir, di, &dx_root_bh); in ocfs2_prepare_dx_dir_for_insert()
4180 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data; in ocfs2_prepare_dx_dir_for_insert()
4188 ret = ocfs2_inline_dx_has_space(dx_root_bh); in ocfs2_prepare_dx_dir_for_insert()
4198 ret = ocfs2_expand_inline_dx_root(dir, dx_root_bh); in ocfs2_prepare_dx_dir_for_insert()
4211 ret = ocfs2_find_dir_space_dx(osb, dir, di_bh, dx_root_bh, name, in ocfs2_prepare_dx_dir_for_insert()
4225 ret = ocfs2_search_dx_free_list(dir, dx_root_bh, namelen, lookup); in ocfs2_prepare_dx_dir_for_insert()
4232 lookup->dl_dx_root_bh = dx_root_bh; in ocfs2_prepare_dx_dir_for_insert()
4253 brelse(dx_root_bh); in ocfs2_prepare_dx_dir_for_insert()
4342 struct buffer_head *dx_root_bh) in ocfs2_dx_dir_remove_index() argument
4355 dx_root = (struct ocfs2_dx_root_block *) dx_root_bh->b_data; in ocfs2_dx_dir_remove_index()
4428 struct buffer_head *dx_root_bh = NULL; in ocfs2_dx_dir_truncate() local
4439 ret = ocfs2_read_dx_root(dir, di, &dx_root_bh); in ocfs2_dx_dir_truncate()
4444 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data; in ocfs2_dx_dir_truncate()
4449 ocfs2_init_dx_root_extent_tree(&et, INODE_CACHE(dir), dx_root_bh); in ocfs2_dx_dir_truncate()
4476 ret = ocfs2_dx_dir_remove_index(dir, di_bh, dx_root_bh); in ocfs2_dx_dir_truncate()
4482 ocfs2_remove_from_cache(INODE_CACHE(dir), dx_root_bh); in ocfs2_dx_dir_truncate()
4487 brelse(dx_root_bh); in ocfs2_dx_dir_truncate()