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()
1252 struct buffer_head *dx_root_bh = lookup->dl_dx_root_bh; in ocfs2_delete_entry_dx() local
1271 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data; in ocfs2_delete_entry_dx()
1314 ret = ocfs2_journal_access_dr(handle, INODE_CACHE(dir), dx_root_bh, in ocfs2_delete_entry_dx()
1346 ocfs2_journal_dirty(handle, dx_root_bh); in ocfs2_delete_entry_dx()
1353 ocfs2_journal_dirty(handle, dx_root_bh); in ocfs2_delete_entry_dx()
1509 struct buffer_head *dx_root_bh = lookup->dl_dx_root_bh; in ocfs2_dx_dir_insert() local
1511 ret = ocfs2_journal_access_dr(handle, INODE_CACHE(dir), dx_root_bh, in ocfs2_dx_dir_insert()
1533 ocfs2_journal_dirty(handle, dx_root_bh); in ocfs2_dx_dir_insert()
2102 struct buffer_head *dx_root_bh = NULL; in ocfs2_empty_dir_dx() local
2115 ret = ocfs2_read_dx_root(inode, di, &dx_root_bh); in ocfs2_empty_dir_dx()
2120 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data; in ocfs2_empty_dir_dx()
2127 brelse(dx_root_bh); in ocfs2_empty_dir_dx()
2320 struct buffer_head *dx_root_bh = NULL; in ocfs2_dx_dir_attach_index() local
2336 dx_root_bh = sb_getblk(osb->sb, dr_blkno); in ocfs2_dx_dir_attach_index()
2337 if (dx_root_bh == NULL) { in ocfs2_dx_dir_attach_index()
2341 ocfs2_set_new_buffer_uptodate(INODE_CACHE(dir), dx_root_bh); in ocfs2_dx_dir_attach_index()
2343 ret = ocfs2_journal_access_dr(handle, INODE_CACHE(dir), dx_root_bh, in ocfs2_dx_dir_attach_index()
2350 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data; in ocfs2_dx_dir_attach_index()
2373 ocfs2_journal_dirty(handle, dx_root_bh); in ocfs2_dx_dir_attach_index()
2391 *ret_dx_root_bh = dx_root_bh; in ocfs2_dx_dir_attach_index()
2392 dx_root_bh = NULL; in ocfs2_dx_dir_attach_index()
2395 brelse(dx_root_bh); in ocfs2_dx_dir_attach_index()
2542 struct buffer_head *dx_root_bh = NULL; in ocfs2_fill_new_dir_dx() local
2566 meta_ac, 1, 2, &dx_root_bh); in ocfs2_fill_new_dir_dx()
2571 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data; in ocfs2_fill_new_dir_dx()
2582 brelse(dx_root_bh); in ocfs2_fill_new_dir_dx()
2659 struct buffer_head *dx_root_bh, in ocfs2_dx_dir_index_root_block() argument
2668 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data; in ocfs2_dx_dir_index_root_block()
2805 struct buffer_head *dx_root_bh = NULL; in ocfs2_expand_inline_dir() local
3019 num_dx_entries, &dx_root_bh); in ocfs2_expand_inline_dir()
3026 ocfs2_dx_dir_index_root_block(dir, dx_root_bh, in ocfs2_expand_inline_dir()
3031 dx_root_bh); in ocfs2_expand_inline_dir()
3076 lookup->dl_dx_root_bh = dx_root_bh; in ocfs2_expand_inline_dir()
3077 dx_root_bh = NULL; in ocfs2_expand_inline_dir()
3100 brelse(dx_root_bh); in ocfs2_expand_inline_dir()
3190 struct buffer_head *dx_root_bh = lookup->dl_dx_root_bh; in ocfs2_extend_dir() local
3197 BUG_ON(dx_root_bh); in ocfs2_extend_dir()
3209 dx_root_bh = lookup->dl_dx_root_bh; in ocfs2_extend_dir()
3320 dx_root_bh, new_bh); in ocfs2_extend_dir()
3703 struct buffer_head *dx_root_bh, in ocfs2_dx_dir_rebalance() argument
3725 ocfs2_init_dx_root_extent_tree(&et, INODE_CACHE(dir), dx_root_bh); in ocfs2_dx_dir_rebalance()
3727 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data; in ocfs2_dx_dir_rebalance()
3899 struct buffer_head *dx_root_bh, in ocfs2_find_dir_space_dx() argument
3910 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data; in ocfs2_find_dir_space_dx()
3942 ret = ocfs2_dx_dir_rebalance(osb, dir, dx_root_bh, dx_leaf_bh, in ocfs2_find_dir_space_dx()
3971 struct buffer_head *dx_root_bh, in ocfs2_search_dx_free_list() argument
3982 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data; in ocfs2_search_dx_free_list()
4019 struct buffer_head *dx_root_bh) in ocfs2_expand_inline_dx_root() argument
4064 ret = ocfs2_journal_access_dr(handle, INODE_CACHE(dir), dx_root_bh, in ocfs2_expand_inline_dx_root()
4082 dx_root = (struct ocfs2_dx_root_block *) dx_root_bh->b_data; in ocfs2_expand_inline_dx_root()
4106 ocfs2_init_dx_root_extent_tree(&et, INODE_CACHE(dir), dx_root_bh); in ocfs2_expand_inline_dx_root()
4113 ocfs2_journal_dirty(handle, dx_root_bh); in ocfs2_expand_inline_dx_root()
4134 static int ocfs2_inline_dx_has_space(struct buffer_head *dx_root_bh) in ocfs2_inline_dx_has_space() argument
4139 dx_root = (struct ocfs2_dx_root_block *) dx_root_bh->b_data; in ocfs2_inline_dx_has_space()
4157 struct buffer_head *dx_root_bh = NULL; in ocfs2_prepare_dx_dir_for_insert() local
4162 ret = ocfs2_read_dx_root(dir, di, &dx_root_bh); in ocfs2_prepare_dx_dir_for_insert()
4168 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data; in ocfs2_prepare_dx_dir_for_insert()
4176 ret = ocfs2_inline_dx_has_space(dx_root_bh); in ocfs2_prepare_dx_dir_for_insert()
4186 ret = ocfs2_expand_inline_dx_root(dir, dx_root_bh); in ocfs2_prepare_dx_dir_for_insert()
4199 ret = ocfs2_find_dir_space_dx(osb, dir, di_bh, dx_root_bh, name, in ocfs2_prepare_dx_dir_for_insert()
4213 ret = ocfs2_search_dx_free_list(dir, dx_root_bh, namelen, lookup); in ocfs2_prepare_dx_dir_for_insert()
4220 lookup->dl_dx_root_bh = dx_root_bh; in ocfs2_prepare_dx_dir_for_insert()
4241 brelse(dx_root_bh); in ocfs2_prepare_dx_dir_for_insert()
4324 struct buffer_head *dx_root_bh) in ocfs2_dx_dir_remove_index() argument
4337 dx_root = (struct ocfs2_dx_root_block *) dx_root_bh->b_data; in ocfs2_dx_dir_remove_index()
4410 struct buffer_head *dx_root_bh = NULL; in ocfs2_dx_dir_truncate() local
4421 ret = ocfs2_read_dx_root(dir, di, &dx_root_bh); in ocfs2_dx_dir_truncate()
4426 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data; in ocfs2_dx_dir_truncate()
4431 ocfs2_init_dx_root_extent_tree(&et, INODE_CACHE(dir), dx_root_bh); in ocfs2_dx_dir_truncate()
4458 ret = ocfs2_dx_dir_remove_index(dir, di_bh, dx_root_bh); in ocfs2_dx_dir_truncate()
4464 ocfs2_remove_from_cache(INODE_CACHE(dir), dx_root_bh); in ocfs2_dx_dir_truncate()
4469 brelse(dx_root_bh); in ocfs2_dx_dir_truncate()