Lines Matching refs:dx_root_bh

152 				     struct buffer_head *dx_root_bh,
159 ret = ocfs2_journal_access_dr(handle, INODE_CACHE(dir), dx_root_bh,
166 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data;
171 ocfs2_journal_dirty(handle, dx_root_bh);
591 struct buffer_head **dx_root_bh)
595 struct buffer_head *tmp = *dx_root_bh;
601 if (!ret && !*dx_root_bh)
602 *dx_root_bh = tmp;
1010 struct buffer_head *dx_root_bh = NULL;
1021 ret = ocfs2_read_dx_root(dir, di, &dx_root_bh);
1026 dx_root = (struct ocfs2_dx_root_block *) dx_root_bh->b_data;
1035 lookup->dl_dx_root_bh = dx_root_bh;
1036 dx_root_bh = NULL;
1039 brelse(dx_root_bh);
1233 struct buffer_head *dx_root_bh = lookup->dl_dx_root_bh;
1252 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data;
1295 ret = ocfs2_journal_access_dr(handle, INODE_CACHE(dir), dx_root_bh,
1327 ocfs2_journal_dirty(handle, dx_root_bh);
1334 ocfs2_journal_dirty(handle, dx_root_bh);
1490 struct buffer_head *dx_root_bh = lookup->dl_dx_root_bh;
1492 ret = ocfs2_journal_access_dr(handle, INODE_CACHE(dir), dx_root_bh,
1514 ocfs2_journal_dirty(handle, dx_root_bh);
2077 struct buffer_head *dx_root_bh = NULL;
2090 ret = ocfs2_read_dx_root(inode, di, &dx_root_bh);
2095 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data;
2102 brelse(dx_root_bh);
2295 struct buffer_head *dx_root_bh = NULL;
2311 dx_root_bh = sb_getblk(osb->sb, dr_blkno);
2312 if (dx_root_bh == NULL) {
2316 ocfs2_set_new_buffer_uptodate(INODE_CACHE(dir), dx_root_bh);
2318 ret = ocfs2_journal_access_dr(handle, INODE_CACHE(dir), dx_root_bh,
2325 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data;
2348 ocfs2_journal_dirty(handle, dx_root_bh);
2366 *ret_dx_root_bh = dx_root_bh;
2367 dx_root_bh = NULL;
2370 brelse(dx_root_bh);
2517 struct buffer_head *dx_root_bh = NULL;
2541 meta_ac, 1, 2, &dx_root_bh);
2546 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data;
2557 brelse(dx_root_bh);
2631 * XXX: This expects dx_root_bh to already be part of the transaction.
2634 struct buffer_head *dx_root_bh,
2643 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data;
2780 struct buffer_head *dx_root_bh = NULL;
2994 num_dx_entries, &dx_root_bh);
3001 ocfs2_dx_dir_index_root_block(dir, dx_root_bh,
3006 dx_root_bh);
3051 lookup->dl_dx_root_bh = dx_root_bh;
3052 dx_root_bh = NULL;
3075 brelse(dx_root_bh);
3144 * If the directory is already indexed, dx_root_bh must be provided.
3165 struct buffer_head *dx_root_bh = lookup->dl_dx_root_bh;
3172 BUG_ON(dx_root_bh);
3184 dx_root_bh = lookup->dl_dx_root_bh;
3295 dx_root_bh, new_bh);
3685 struct buffer_head *dx_root_bh,
3707 ocfs2_init_dx_root_extent_tree(&et, INODE_CACHE(dir), dx_root_bh);
3709 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data;
3881 struct buffer_head *dx_root_bh,
3892 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data;
3924 ret = ocfs2_dx_dir_rebalance(osb, dir, dx_root_bh, dx_leaf_bh,
3953 struct buffer_head *dx_root_bh,
3964 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data;
4001 struct buffer_head *dx_root_bh)
4043 * failure to add the dx_root_bh to the journal won't result
4046 ret = ocfs2_journal_access_dr(handle, INODE_CACHE(dir), dx_root_bh,
4064 dx_root = (struct ocfs2_dx_root_block *) dx_root_bh->b_data;
4088 ocfs2_init_dx_root_extent_tree(&et, INODE_CACHE(dir), dx_root_bh);
4095 ocfs2_journal_dirty(handle, dx_root_bh);
4116 static int ocfs2_inline_dx_has_space(struct buffer_head *dx_root_bh)
4121 dx_root = (struct ocfs2_dx_root_block *) dx_root_bh->b_data;
4139 struct buffer_head *dx_root_bh = NULL;
4144 ret = ocfs2_read_dx_root(dir, di, &dx_root_bh);
4150 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data;
4158 ret = ocfs2_inline_dx_has_space(dx_root_bh);
4168 ret = ocfs2_expand_inline_dx_root(dir, dx_root_bh);
4181 ret = ocfs2_find_dir_space_dx(osb, dir, di_bh, dx_root_bh, name,
4195 ret = ocfs2_search_dx_free_list(dir, dx_root_bh, namelen, lookup);
4202 lookup->dl_dx_root_bh = dx_root_bh;
4223 brelse(dx_root_bh);
4312 struct buffer_head *dx_root_bh)
4325 dx_root = (struct ocfs2_dx_root_block *) dx_root_bh->b_data;
4398 struct buffer_head *dx_root_bh = NULL;
4409 ret = ocfs2_read_dx_root(dir, di, &dx_root_bh);
4414 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data;
4419 ocfs2_init_dx_root_extent_tree(&et, INODE_CACHE(dir), dx_root_bh);
4446 ret = ocfs2_dx_dir_remove_index(dir, di_bh, dx_root_bh);
4452 ocfs2_remove_from_cache(INODE_CACHE(dir), dx_root_bh);
4457 brelse(dx_root_bh);