Lines Matching refs:dx_root_bh

154 				     struct buffer_head *dx_root_bh,
161 ret = ocfs2_journal_access_dr(handle, INODE_CACHE(dir), dx_root_bh,
168 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data;
173 ocfs2_journal_dirty(handle, dx_root_bh);
599 struct buffer_head **dx_root_bh)
603 struct buffer_head *tmp = *dx_root_bh;
609 if (!ret && !*dx_root_bh)
610 *dx_root_bh = tmp;
1018 struct buffer_head *dx_root_bh = NULL;
1029 ret = ocfs2_read_dx_root(dir, di, &dx_root_bh);
1034 dx_root = (struct ocfs2_dx_root_block *) dx_root_bh->b_data;
1043 lookup->dl_dx_root_bh = dx_root_bh;
1044 dx_root_bh = NULL;
1047 brelse(dx_root_bh);
1241 struct buffer_head *dx_root_bh = lookup->dl_dx_root_bh;
1260 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data;
1303 ret = ocfs2_journal_access_dr(handle, INODE_CACHE(dir), dx_root_bh,
1335 ocfs2_journal_dirty(handle, dx_root_bh);
1342 ocfs2_journal_dirty(handle, dx_root_bh);
1498 struct buffer_head *dx_root_bh = lookup->dl_dx_root_bh;
1500 ret = ocfs2_journal_access_dr(handle, INODE_CACHE(dir), dx_root_bh,
1522 ocfs2_journal_dirty(handle, dx_root_bh);
2088 struct buffer_head *dx_root_bh = NULL;
2101 ret = ocfs2_read_dx_root(inode, di, &dx_root_bh);
2106 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data;
2113 brelse(dx_root_bh);
2306 struct buffer_head *dx_root_bh = NULL;
2322 dx_root_bh = sb_getblk(osb->sb, dr_blkno);
2323 if (dx_root_bh == NULL) {
2327 ocfs2_set_new_buffer_uptodate(INODE_CACHE(dir), dx_root_bh);
2329 ret = ocfs2_journal_access_dr(handle, INODE_CACHE(dir), dx_root_bh,
2336 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data;
2359 ocfs2_journal_dirty(handle, dx_root_bh);
2377 *ret_dx_root_bh = dx_root_bh;
2378 dx_root_bh = NULL;
2381 brelse(dx_root_bh);
2528 struct buffer_head *dx_root_bh = NULL;
2552 meta_ac, 1, 2, &dx_root_bh);
2557 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data;
2568 brelse(dx_root_bh);
2642 * XXX: This expects dx_root_bh to already be part of the transaction.
2645 struct buffer_head *dx_root_bh,
2654 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data;
2791 struct buffer_head *dx_root_bh = NULL;
3005 num_dx_entries, &dx_root_bh);
3012 ocfs2_dx_dir_index_root_block(dir, dx_root_bh,
3017 dx_root_bh);
3062 lookup->dl_dx_root_bh = dx_root_bh;
3063 dx_root_bh = NULL;
3086 brelse(dx_root_bh);
3155 * If the directory is already indexed, dx_root_bh must be provided.
3176 struct buffer_head *dx_root_bh = lookup->dl_dx_root_bh;
3183 BUG_ON(dx_root_bh);
3195 dx_root_bh = lookup->dl_dx_root_bh;
3306 dx_root_bh, new_bh);
3699 struct buffer_head *dx_root_bh,
3721 ocfs2_init_dx_root_extent_tree(&et, INODE_CACHE(dir), dx_root_bh);
3723 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data;
3895 struct buffer_head *dx_root_bh,
3906 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data;
3938 ret = ocfs2_dx_dir_rebalance(osb, dir, dx_root_bh, dx_leaf_bh,
3967 struct buffer_head *dx_root_bh,
3978 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data;
4015 struct buffer_head *dx_root_bh)
4057 * failure to add the dx_root_bh to the journal won't result
4060 ret = ocfs2_journal_access_dr(handle, INODE_CACHE(dir), dx_root_bh,
4078 dx_root = (struct ocfs2_dx_root_block *) dx_root_bh->b_data;
4102 ocfs2_init_dx_root_extent_tree(&et, INODE_CACHE(dir), dx_root_bh);
4109 ocfs2_journal_dirty(handle, dx_root_bh);
4130 static int ocfs2_inline_dx_has_space(struct buffer_head *dx_root_bh)
4135 dx_root = (struct ocfs2_dx_root_block *) dx_root_bh->b_data;
4153 struct buffer_head *dx_root_bh = NULL;
4158 ret = ocfs2_read_dx_root(dir, di, &dx_root_bh);
4164 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data;
4172 ret = ocfs2_inline_dx_has_space(dx_root_bh);
4182 ret = ocfs2_expand_inline_dx_root(dir, dx_root_bh);
4195 ret = ocfs2_find_dir_space_dx(osb, dir, di_bh, dx_root_bh, name,
4209 ret = ocfs2_search_dx_free_list(dir, dx_root_bh, namelen, lookup);
4216 lookup->dl_dx_root_bh = dx_root_bh;
4237 brelse(dx_root_bh);
4326 struct buffer_head *dx_root_bh)
4339 dx_root = (struct ocfs2_dx_root_block *) dx_root_bh->b_data;
4412 struct buffer_head *dx_root_bh = NULL;
4423 ret = ocfs2_read_dx_root(dir, di, &dx_root_bh);
4428 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data;
4433 ocfs2_init_dx_root_extent_tree(&et, INODE_CACHE(dir), dx_root_bh);
4460 ret = ocfs2_dx_dir_remove_index(dir, di_bh, dx_root_bh);
4466 ocfs2_remove_from_cache(INODE_CACHE(dir), dx_root_bh);
4471 brelse(dx_root_bh);