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()
619 struct buffer_head **dx_root_bh) in ocfs2_read_dx_root() argument
623 struct buffer_head *tmp = *dx_root_bh; in ocfs2_read_dx_root()
629 if (!ret && !*dx_root_bh) in ocfs2_read_dx_root()
630 *dx_root_bh = tmp; in ocfs2_read_dx_root()
1040 struct buffer_head *dx_root_bh = NULL; in ocfs2_find_entry_dx() local
1051 ret = ocfs2_read_dx_root(dir, di, &dx_root_bh); in ocfs2_find_entry_dx()
1056 dx_root = (struct ocfs2_dx_root_block *) dx_root_bh->b_data; in ocfs2_find_entry_dx()
1065 lookup->dl_dx_root_bh = dx_root_bh; in ocfs2_find_entry_dx()
1066 dx_root_bh = NULL; in ocfs2_find_entry_dx()
1069 brelse(dx_root_bh); in ocfs2_find_entry_dx()
1264 struct buffer_head *dx_root_bh = lookup->dl_dx_root_bh; in ocfs2_delete_entry_dx() local
1283 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data; in ocfs2_delete_entry_dx()
1326 ret = ocfs2_journal_access_dr(handle, INODE_CACHE(dir), dx_root_bh, in ocfs2_delete_entry_dx()
1358 ocfs2_journal_dirty(handle, dx_root_bh); in ocfs2_delete_entry_dx()
1365 ocfs2_journal_dirty(handle, dx_root_bh); in ocfs2_delete_entry_dx()
1521 struct buffer_head *dx_root_bh = lookup->dl_dx_root_bh; in ocfs2_dx_dir_insert() local
1523 ret = ocfs2_journal_access_dr(handle, INODE_CACHE(dir), dx_root_bh, in ocfs2_dx_dir_insert()
1545 ocfs2_journal_dirty(handle, dx_root_bh); in ocfs2_dx_dir_insert()
2170 struct buffer_head *dx_root_bh = NULL; in ocfs2_empty_dir_dx() local
2183 ret = ocfs2_read_dx_root(inode, di, &dx_root_bh); in ocfs2_empty_dir_dx()
2188 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data; in ocfs2_empty_dir_dx()
2195 brelse(dx_root_bh); in ocfs2_empty_dir_dx()
2389 struct buffer_head *dx_root_bh = NULL; in ocfs2_dx_dir_attach_index() local
2405 dx_root_bh = sb_getblk(osb->sb, dr_blkno); in ocfs2_dx_dir_attach_index()
2406 if (dx_root_bh == NULL) { in ocfs2_dx_dir_attach_index()
2410 ocfs2_set_new_buffer_uptodate(INODE_CACHE(dir), dx_root_bh); in ocfs2_dx_dir_attach_index()
2412 ret = ocfs2_journal_access_dr(handle, INODE_CACHE(dir), dx_root_bh, in ocfs2_dx_dir_attach_index()
2419 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data; in ocfs2_dx_dir_attach_index()
2442 ocfs2_journal_dirty(handle, dx_root_bh); in ocfs2_dx_dir_attach_index()
2460 *ret_dx_root_bh = dx_root_bh; in ocfs2_dx_dir_attach_index()
2461 dx_root_bh = NULL; in ocfs2_dx_dir_attach_index()
2464 brelse(dx_root_bh); in ocfs2_dx_dir_attach_index()
2611 struct buffer_head *dx_root_bh = NULL; in ocfs2_fill_new_dir_dx() local
2635 meta_ac, 1, 2, &dx_root_bh); in ocfs2_fill_new_dir_dx()
2640 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data; in ocfs2_fill_new_dir_dx()
2651 brelse(dx_root_bh); in ocfs2_fill_new_dir_dx()
2728 struct buffer_head *dx_root_bh, in ocfs2_dx_dir_index_root_block() argument
2737 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data; in ocfs2_dx_dir_index_root_block()
2874 struct buffer_head *dx_root_bh = NULL; in ocfs2_expand_inline_dir() local
3086 num_dx_entries, &dx_root_bh); in ocfs2_expand_inline_dir()
3093 ocfs2_dx_dir_index_root_block(dir, dx_root_bh, in ocfs2_expand_inline_dir()
3098 dx_root_bh); in ocfs2_expand_inline_dir()
3143 lookup->dl_dx_root_bh = dx_root_bh; in ocfs2_expand_inline_dir()
3144 dx_root_bh = NULL; in ocfs2_expand_inline_dir()
3167 brelse(dx_root_bh); in ocfs2_expand_inline_dir()
3257 struct buffer_head *dx_root_bh = lookup->dl_dx_root_bh; in ocfs2_extend_dir() local
3264 BUG_ON(dx_root_bh); in ocfs2_extend_dir()
3276 dx_root_bh = lookup->dl_dx_root_bh; in ocfs2_extend_dir()
3387 dx_root_bh, new_bh); in ocfs2_extend_dir()
3784 struct buffer_head *dx_root_bh, in ocfs2_dx_dir_rebalance() argument
3806 ocfs2_init_dx_root_extent_tree(&et, INODE_CACHE(dir), dx_root_bh); in ocfs2_dx_dir_rebalance()
3808 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data; in ocfs2_dx_dir_rebalance()
3979 struct buffer_head *dx_root_bh, in ocfs2_find_dir_space_dx() argument
3990 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data; in ocfs2_find_dir_space_dx()
4022 ret = ocfs2_dx_dir_rebalance(osb, dir, dx_root_bh, dx_leaf_bh, in ocfs2_find_dir_space_dx()
4051 struct buffer_head *dx_root_bh, in ocfs2_search_dx_free_list() argument
4062 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data; in ocfs2_search_dx_free_list()
4099 struct buffer_head *dx_root_bh) in ocfs2_expand_inline_dx_root() argument
4144 ret = ocfs2_journal_access_dr(handle, INODE_CACHE(dir), dx_root_bh, in ocfs2_expand_inline_dx_root()
4162 dx_root = (struct ocfs2_dx_root_block *) dx_root_bh->b_data; in ocfs2_expand_inline_dx_root()
4186 ocfs2_init_dx_root_extent_tree(&et, INODE_CACHE(dir), dx_root_bh); in ocfs2_expand_inline_dx_root()
4192 ocfs2_journal_dirty(handle, dx_root_bh); in ocfs2_expand_inline_dx_root()
4213 static int ocfs2_inline_dx_has_space(struct buffer_head *dx_root_bh) in ocfs2_inline_dx_has_space() argument
4218 dx_root = (struct ocfs2_dx_root_block *) dx_root_bh->b_data; in ocfs2_inline_dx_has_space()
4236 struct buffer_head *dx_root_bh = NULL; in ocfs2_prepare_dx_dir_for_insert() local
4241 ret = ocfs2_read_dx_root(dir, di, &dx_root_bh); in ocfs2_prepare_dx_dir_for_insert()
4247 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data; in ocfs2_prepare_dx_dir_for_insert()
4255 ret = ocfs2_inline_dx_has_space(dx_root_bh); in ocfs2_prepare_dx_dir_for_insert()
4265 ret = ocfs2_expand_inline_dx_root(dir, dx_root_bh); in ocfs2_prepare_dx_dir_for_insert()
4278 ret = ocfs2_find_dir_space_dx(osb, dir, di_bh, dx_root_bh, name, in ocfs2_prepare_dx_dir_for_insert()
4292 ret = ocfs2_search_dx_free_list(dir, dx_root_bh, namelen, lookup); in ocfs2_prepare_dx_dir_for_insert()
4299 lookup->dl_dx_root_bh = dx_root_bh; in ocfs2_prepare_dx_dir_for_insert()
4320 brelse(dx_root_bh); in ocfs2_prepare_dx_dir_for_insert()
4409 struct buffer_head *dx_root_bh) in ocfs2_dx_dir_remove_index() argument
4422 dx_root = (struct ocfs2_dx_root_block *) dx_root_bh->b_data; in ocfs2_dx_dir_remove_index()
4494 struct buffer_head *dx_root_bh = NULL; in ocfs2_dx_dir_truncate() local
4505 ret = ocfs2_read_dx_root(dir, di, &dx_root_bh); in ocfs2_dx_dir_truncate()
4510 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data; in ocfs2_dx_dir_truncate()
4515 ocfs2_init_dx_root_extent_tree(&et, INODE_CACHE(dir), dx_root_bh); in ocfs2_dx_dir_truncate()
4542 ret = ocfs2_dx_dir_remove_index(dir, di_bh, dx_root_bh); in ocfs2_dx_dir_truncate()
4548 ocfs2_remove_from_cache(INODE_CACHE(dir), dx_root_bh); in ocfs2_dx_dir_truncate()
4553 brelse(dx_root_bh); in ocfs2_dx_dir_truncate()