Lines Matching refs:dx_root_bh
171 struct buffer_head *dx_root_bh, in ocfs2_dx_dir_link_trailer() argument
178 ret = ocfs2_journal_access_dr(handle, INODE_CACHE(dir), dx_root_bh, in ocfs2_dx_dir_link_trailer()
185 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data; in ocfs2_dx_dir_link_trailer()
190 ocfs2_journal_dirty(handle, dx_root_bh); in ocfs2_dx_dir_link_trailer()
618 struct buffer_head **dx_root_bh) in ocfs2_read_dx_root() argument
622 struct buffer_head *tmp = *dx_root_bh; in ocfs2_read_dx_root()
628 if (!ret && !*dx_root_bh) in ocfs2_read_dx_root()
629 *dx_root_bh = tmp; in ocfs2_read_dx_root()
1039 struct buffer_head *dx_root_bh = NULL; in ocfs2_find_entry_dx() local
1050 ret = ocfs2_read_dx_root(dir, di, &dx_root_bh); in ocfs2_find_entry_dx()
1055 dx_root = (struct ocfs2_dx_root_block *) dx_root_bh->b_data; in ocfs2_find_entry_dx()
1064 lookup->dl_dx_root_bh = dx_root_bh; in ocfs2_find_entry_dx()
1065 dx_root_bh = NULL; in ocfs2_find_entry_dx()
1068 brelse(dx_root_bh); in ocfs2_find_entry_dx()
1262 struct buffer_head *dx_root_bh = lookup->dl_dx_root_bh; in ocfs2_delete_entry_dx() local
1281 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data; in ocfs2_delete_entry_dx()
1324 ret = ocfs2_journal_access_dr(handle, INODE_CACHE(dir), dx_root_bh, in ocfs2_delete_entry_dx()
1356 ocfs2_journal_dirty(handle, dx_root_bh); in ocfs2_delete_entry_dx()
1363 ocfs2_journal_dirty(handle, dx_root_bh); in ocfs2_delete_entry_dx()
1519 struct buffer_head *dx_root_bh = lookup->dl_dx_root_bh; in ocfs2_dx_dir_insert() local
1521 ret = ocfs2_journal_access_dr(handle, INODE_CACHE(dir), dx_root_bh, in ocfs2_dx_dir_insert()
1543 ocfs2_journal_dirty(handle, dx_root_bh); in ocfs2_dx_dir_insert()
2115 struct buffer_head *dx_root_bh = NULL; in ocfs2_empty_dir_dx() local
2128 ret = ocfs2_read_dx_root(inode, di, &dx_root_bh); in ocfs2_empty_dir_dx()
2133 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data; in ocfs2_empty_dir_dx()
2140 brelse(dx_root_bh); in ocfs2_empty_dir_dx()
2333 struct buffer_head *dx_root_bh = NULL; in ocfs2_dx_dir_attach_index() local
2349 dx_root_bh = sb_getblk(osb->sb, dr_blkno); in ocfs2_dx_dir_attach_index()
2350 if (dx_root_bh == NULL) { in ocfs2_dx_dir_attach_index()
2354 ocfs2_set_new_buffer_uptodate(INODE_CACHE(dir), dx_root_bh); in ocfs2_dx_dir_attach_index()
2356 ret = ocfs2_journal_access_dr(handle, INODE_CACHE(dir), dx_root_bh, in ocfs2_dx_dir_attach_index()
2363 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data; in ocfs2_dx_dir_attach_index()
2386 ocfs2_journal_dirty(handle, dx_root_bh); in ocfs2_dx_dir_attach_index()
2404 *ret_dx_root_bh = dx_root_bh; in ocfs2_dx_dir_attach_index()
2405 dx_root_bh = NULL; in ocfs2_dx_dir_attach_index()
2408 brelse(dx_root_bh); in ocfs2_dx_dir_attach_index()
2555 struct buffer_head *dx_root_bh = NULL; in ocfs2_fill_new_dir_dx() local
2579 meta_ac, 1, 2, &dx_root_bh); in ocfs2_fill_new_dir_dx()
2584 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data; in ocfs2_fill_new_dir_dx()
2595 brelse(dx_root_bh); in ocfs2_fill_new_dir_dx()
2672 struct buffer_head *dx_root_bh, in ocfs2_dx_dir_index_root_block() argument
2681 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data; in ocfs2_dx_dir_index_root_block()
2818 struct buffer_head *dx_root_bh = NULL; in ocfs2_expand_inline_dir() local
3032 num_dx_entries, &dx_root_bh); in ocfs2_expand_inline_dir()
3039 ocfs2_dx_dir_index_root_block(dir, dx_root_bh, in ocfs2_expand_inline_dir()
3044 dx_root_bh); in ocfs2_expand_inline_dir()
3089 lookup->dl_dx_root_bh = dx_root_bh; in ocfs2_expand_inline_dir()
3090 dx_root_bh = NULL; in ocfs2_expand_inline_dir()
3113 brelse(dx_root_bh); in ocfs2_expand_inline_dir()
3203 struct buffer_head *dx_root_bh = lookup->dl_dx_root_bh; in ocfs2_extend_dir() local
3210 BUG_ON(dx_root_bh); in ocfs2_extend_dir()
3222 dx_root_bh = lookup->dl_dx_root_bh; in ocfs2_extend_dir()
3333 dx_root_bh, new_bh); in ocfs2_extend_dir()
3727 struct buffer_head *dx_root_bh, in ocfs2_dx_dir_rebalance() argument
3749 ocfs2_init_dx_root_extent_tree(&et, INODE_CACHE(dir), dx_root_bh); in ocfs2_dx_dir_rebalance()
3751 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data; in ocfs2_dx_dir_rebalance()
3923 struct buffer_head *dx_root_bh, in ocfs2_find_dir_space_dx() argument
3934 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data; in ocfs2_find_dir_space_dx()
3966 ret = ocfs2_dx_dir_rebalance(osb, dir, dx_root_bh, dx_leaf_bh, in ocfs2_find_dir_space_dx()
3995 struct buffer_head *dx_root_bh, in ocfs2_search_dx_free_list() argument
4006 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data; in ocfs2_search_dx_free_list()
4043 struct buffer_head *dx_root_bh) in ocfs2_expand_inline_dx_root() argument
4088 ret = ocfs2_journal_access_dr(handle, INODE_CACHE(dir), dx_root_bh, in ocfs2_expand_inline_dx_root()
4106 dx_root = (struct ocfs2_dx_root_block *) dx_root_bh->b_data; in ocfs2_expand_inline_dx_root()
4130 ocfs2_init_dx_root_extent_tree(&et, INODE_CACHE(dir), dx_root_bh); in ocfs2_expand_inline_dx_root()
4137 ocfs2_journal_dirty(handle, dx_root_bh); in ocfs2_expand_inline_dx_root()
4158 static int ocfs2_inline_dx_has_space(struct buffer_head *dx_root_bh) in ocfs2_inline_dx_has_space() argument
4163 dx_root = (struct ocfs2_dx_root_block *) dx_root_bh->b_data; in ocfs2_inline_dx_has_space()
4181 struct buffer_head *dx_root_bh = NULL; in ocfs2_prepare_dx_dir_for_insert() local
4186 ret = ocfs2_read_dx_root(dir, di, &dx_root_bh); in ocfs2_prepare_dx_dir_for_insert()
4192 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data; in ocfs2_prepare_dx_dir_for_insert()
4200 ret = ocfs2_inline_dx_has_space(dx_root_bh); in ocfs2_prepare_dx_dir_for_insert()
4210 ret = ocfs2_expand_inline_dx_root(dir, dx_root_bh); 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()
4237 ret = ocfs2_search_dx_free_list(dir, dx_root_bh, namelen, lookup); in ocfs2_prepare_dx_dir_for_insert()
4244 lookup->dl_dx_root_bh = dx_root_bh; in ocfs2_prepare_dx_dir_for_insert()
4265 brelse(dx_root_bh); in ocfs2_prepare_dx_dir_for_insert()
4354 struct buffer_head *dx_root_bh) in ocfs2_dx_dir_remove_index() argument
4367 dx_root = (struct ocfs2_dx_root_block *) dx_root_bh->b_data; in ocfs2_dx_dir_remove_index()
4440 struct buffer_head *dx_root_bh = NULL; in ocfs2_dx_dir_truncate() local
4451 ret = ocfs2_read_dx_root(dir, di, &dx_root_bh); in ocfs2_dx_dir_truncate()
4456 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data; in ocfs2_dx_dir_truncate()
4461 ocfs2_init_dx_root_extent_tree(&et, INODE_CACHE(dir), dx_root_bh); in ocfs2_dx_dir_truncate()
4488 ret = ocfs2_dx_dir_remove_index(dir, di_bh, dx_root_bh); in ocfs2_dx_dir_truncate()
4494 ocfs2_remove_from_cache(INODE_CACHE(dir), dx_root_bh); in ocfs2_dx_dir_truncate()
4499 brelse(dx_root_bh); in ocfs2_dx_dir_truncate()