Lines Matching refs:dx_root_bh
154 struct buffer_head *dx_root_bh, in ocfs2_dx_dir_link_trailer() argument
161 ret = ocfs2_journal_access_dr(handle, INODE_CACHE(dir), dx_root_bh, in ocfs2_dx_dir_link_trailer()
168 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data; in ocfs2_dx_dir_link_trailer()
173 ocfs2_journal_dirty(handle, dx_root_bh); in ocfs2_dx_dir_link_trailer()
593 struct buffer_head **dx_root_bh) in ocfs2_read_dx_root() argument
597 struct buffer_head *tmp = *dx_root_bh; in ocfs2_read_dx_root()
603 if (!ret && !*dx_root_bh) in ocfs2_read_dx_root()
604 *dx_root_bh = tmp; in ocfs2_read_dx_root()
1012 struct buffer_head *dx_root_bh = NULL; in ocfs2_find_entry_dx() local
1023 ret = ocfs2_read_dx_root(dir, di, &dx_root_bh); in ocfs2_find_entry_dx()
1028 dx_root = (struct ocfs2_dx_root_block *) dx_root_bh->b_data; in ocfs2_find_entry_dx()
1037 lookup->dl_dx_root_bh = dx_root_bh; in ocfs2_find_entry_dx()
1038 dx_root_bh = NULL; in ocfs2_find_entry_dx()
1041 brelse(dx_root_bh); in ocfs2_find_entry_dx()
1235 struct buffer_head *dx_root_bh = lookup->dl_dx_root_bh; in ocfs2_delete_entry_dx() local
1254 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data; in ocfs2_delete_entry_dx()
1297 ret = ocfs2_journal_access_dr(handle, INODE_CACHE(dir), dx_root_bh, in ocfs2_delete_entry_dx()
1329 ocfs2_journal_dirty(handle, dx_root_bh); in ocfs2_delete_entry_dx()
1336 ocfs2_journal_dirty(handle, dx_root_bh); in ocfs2_delete_entry_dx()
1492 struct buffer_head *dx_root_bh = lookup->dl_dx_root_bh; in ocfs2_dx_dir_insert() local
1494 ret = ocfs2_journal_access_dr(handle, INODE_CACHE(dir), dx_root_bh, in ocfs2_dx_dir_insert()
1516 ocfs2_journal_dirty(handle, dx_root_bh); in ocfs2_dx_dir_insert()
2079 struct buffer_head *dx_root_bh = NULL; in ocfs2_empty_dir_dx() local
2092 ret = ocfs2_read_dx_root(inode, di, &dx_root_bh); in ocfs2_empty_dir_dx()
2097 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data; in ocfs2_empty_dir_dx()
2104 brelse(dx_root_bh); in ocfs2_empty_dir_dx()
2297 struct buffer_head *dx_root_bh = NULL; in ocfs2_dx_dir_attach_index() local
2313 dx_root_bh = sb_getblk(osb->sb, dr_blkno); in ocfs2_dx_dir_attach_index()
2314 if (dx_root_bh == NULL) { in ocfs2_dx_dir_attach_index()
2318 ocfs2_set_new_buffer_uptodate(INODE_CACHE(dir), dx_root_bh); in ocfs2_dx_dir_attach_index()
2320 ret = ocfs2_journal_access_dr(handle, INODE_CACHE(dir), dx_root_bh, in ocfs2_dx_dir_attach_index()
2327 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data; in ocfs2_dx_dir_attach_index()
2350 ocfs2_journal_dirty(handle, dx_root_bh); in ocfs2_dx_dir_attach_index()
2368 *ret_dx_root_bh = dx_root_bh; in ocfs2_dx_dir_attach_index()
2369 dx_root_bh = NULL; in ocfs2_dx_dir_attach_index()
2372 brelse(dx_root_bh); in ocfs2_dx_dir_attach_index()
2519 struct buffer_head *dx_root_bh = NULL; in ocfs2_fill_new_dir_dx() local
2543 meta_ac, 1, 2, &dx_root_bh); in ocfs2_fill_new_dir_dx()
2548 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data; in ocfs2_fill_new_dir_dx()
2559 brelse(dx_root_bh); in ocfs2_fill_new_dir_dx()
2636 struct buffer_head *dx_root_bh, in ocfs2_dx_dir_index_root_block() argument
2645 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data; in ocfs2_dx_dir_index_root_block()
2782 struct buffer_head *dx_root_bh = NULL; in ocfs2_expand_inline_dir() local
2996 num_dx_entries, &dx_root_bh); in ocfs2_expand_inline_dir()
3003 ocfs2_dx_dir_index_root_block(dir, dx_root_bh, in ocfs2_expand_inline_dir()
3008 dx_root_bh); in ocfs2_expand_inline_dir()
3053 lookup->dl_dx_root_bh = dx_root_bh; in ocfs2_expand_inline_dir()
3054 dx_root_bh = NULL; in ocfs2_expand_inline_dir()
3077 brelse(dx_root_bh); in ocfs2_expand_inline_dir()
3167 struct buffer_head *dx_root_bh = lookup->dl_dx_root_bh; in ocfs2_extend_dir() local
3174 BUG_ON(dx_root_bh); in ocfs2_extend_dir()
3186 dx_root_bh = lookup->dl_dx_root_bh; in ocfs2_extend_dir()
3297 dx_root_bh, new_bh); in ocfs2_extend_dir()
3687 struct buffer_head *dx_root_bh, in ocfs2_dx_dir_rebalance() argument
3709 ocfs2_init_dx_root_extent_tree(&et, INODE_CACHE(dir), dx_root_bh); in ocfs2_dx_dir_rebalance()
3711 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data; in ocfs2_dx_dir_rebalance()
3883 struct buffer_head *dx_root_bh, in ocfs2_find_dir_space_dx() argument
3894 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data; in ocfs2_find_dir_space_dx()
3926 ret = ocfs2_dx_dir_rebalance(osb, dir, dx_root_bh, dx_leaf_bh, in ocfs2_find_dir_space_dx()
3955 struct buffer_head *dx_root_bh, in ocfs2_search_dx_free_list() argument
3966 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data; in ocfs2_search_dx_free_list()
4003 struct buffer_head *dx_root_bh) in ocfs2_expand_inline_dx_root() argument
4048 ret = ocfs2_journal_access_dr(handle, INODE_CACHE(dir), dx_root_bh, in ocfs2_expand_inline_dx_root()
4066 dx_root = (struct ocfs2_dx_root_block *) dx_root_bh->b_data; in ocfs2_expand_inline_dx_root()
4090 ocfs2_init_dx_root_extent_tree(&et, INODE_CACHE(dir), dx_root_bh); in ocfs2_expand_inline_dx_root()
4097 ocfs2_journal_dirty(handle, dx_root_bh); in ocfs2_expand_inline_dx_root()
4118 static int ocfs2_inline_dx_has_space(struct buffer_head *dx_root_bh) in ocfs2_inline_dx_has_space() argument
4123 dx_root = (struct ocfs2_dx_root_block *) dx_root_bh->b_data; in ocfs2_inline_dx_has_space()
4141 struct buffer_head *dx_root_bh = NULL; in ocfs2_prepare_dx_dir_for_insert() local
4146 ret = ocfs2_read_dx_root(dir, di, &dx_root_bh); in ocfs2_prepare_dx_dir_for_insert()
4152 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data; in ocfs2_prepare_dx_dir_for_insert()
4160 ret = ocfs2_inline_dx_has_space(dx_root_bh); in ocfs2_prepare_dx_dir_for_insert()
4170 ret = ocfs2_expand_inline_dx_root(dir, dx_root_bh); in ocfs2_prepare_dx_dir_for_insert()
4183 ret = ocfs2_find_dir_space_dx(osb, dir, di_bh, dx_root_bh, name, in ocfs2_prepare_dx_dir_for_insert()
4197 ret = ocfs2_search_dx_free_list(dir, dx_root_bh, namelen, lookup); in ocfs2_prepare_dx_dir_for_insert()
4204 lookup->dl_dx_root_bh = dx_root_bh; in ocfs2_prepare_dx_dir_for_insert()
4225 brelse(dx_root_bh); in ocfs2_prepare_dx_dir_for_insert()
4314 struct buffer_head *dx_root_bh) in ocfs2_dx_dir_remove_index() argument
4327 dx_root = (struct ocfs2_dx_root_block *) dx_root_bh->b_data; in ocfs2_dx_dir_remove_index()
4400 struct buffer_head *dx_root_bh = NULL; in ocfs2_dx_dir_truncate() local
4411 ret = ocfs2_read_dx_root(dir, di, &dx_root_bh); in ocfs2_dx_dir_truncate()
4416 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data; in ocfs2_dx_dir_truncate()
4421 ocfs2_init_dx_root_extent_tree(&et, INODE_CACHE(dir), dx_root_bh); in ocfs2_dx_dir_truncate()
4448 ret = ocfs2_dx_dir_remove_index(dir, di_bh, dx_root_bh); in ocfs2_dx_dir_truncate()
4454 ocfs2_remove_from_cache(INODE_CACHE(dir), dx_root_bh); in ocfs2_dx_dir_truncate()
4459 brelse(dx_root_bh); in ocfs2_dx_dir_truncate()