Lines Matching defs:ref_root_bh
50 struct buffer_head *ref_root_bh;
330 struct buffer_head *ref_root_bh = NULL;
358 ret = ocfs2_read_refcount_block(&new->rf_ci, rf_blkno, &ref_root_bh);
366 ref_rb = (struct ocfs2_refcount_block *)ref_root_bh->b_data;
392 brelse(ref_root_bh);
452 struct buffer_head *ref_root_bh = NULL;
472 &ref_root_bh);
479 rb = (struct ocfs2_refcount_block *)ref_root_bh->b_data;
503 brelse(ref_root_bh);
504 ref_root_bh = NULL;
510 *ref_bh = ref_root_bh;
511 ref_root_bh = NULL;
514 brelse(ref_root_bh);
701 struct buffer_head *ref_root_bh = NULL;
708 &ref_tree, &ref_root_bh);
728 ret = ocfs2_journal_access_rb(handle, &ref_tree->rf_ci, ref_root_bh,
735 rb = (struct ocfs2_refcount_block *)ref_root_bh->b_data;
738 ocfs2_journal_dirty(handle, ref_root_bh);
751 brelse(ref_root_bh);
959 struct buffer_head *ref_root_bh,
996 ocfs2_init_refcount_extent_tree(&et, ci, ref_root_bh);
1059 struct buffer_head *ref_root_bh,
1073 (struct ocfs2_refcount_block *)ref_root_bh->b_data;
1076 ocfs2_find_refcount_rec_in_rl(ci, ref_root_bh, cpos, len,
1078 *ret_bh = ref_root_bh;
1079 get_bh(ref_root_bh);
1116 ret = ocfs2_get_refcount_cpos_end(ci, ref_root_bh,
1278 struct buffer_head *ref_root_bh,
1290 (struct ocfs2_refcount_block *)ref_root_bh->b_data;
1292 ret = ocfs2_journal_access_rb(handle, ci, ref_root_bh,
1327 memcpy(new_bh->b_data, ref_root_bh->b_data, sb->s_blocksize);
1335 new_rb->rf_parent = cpu_to_le64(ref_root_bh->b_blocknr);
1349 ocfs2_journal_dirty(handle, ref_root_bh);
1516 struct buffer_head *ref_root_bh,
1526 (struct ocfs2_refcount_block *)ref_root_bh->b_data;
1533 ret = ocfs2_journal_access_rb(handle, ci, ref_root_bh,
1579 new_rb->rf_parent = cpu_to_le64(ref_root_bh->b_blocknr);
1594 ocfs2_init_refcount_extent_tree(&ref_et, ci, ref_root_bh);
1612 struct buffer_head *ref_root_bh,
1619 if (ref_root_bh == ref_leaf_bh) {
1624 ret = ocfs2_expand_inline_ref_root(handle, ci, ref_root_bh,
1637 ret = ocfs2_new_leaf_refcount_block(handle, ci, ref_root_bh,
1654 struct buffer_head *ref_root_bh,
1663 (struct ocfs2_refcount_block *)ref_root_bh->b_data;
1675 ocfs2_init_refcount_extent_tree(&et, ci, ref_root_bh);
1738 struct buffer_head *ref_root_bh,
1756 ret = ocfs2_expand_refcount_tree(handle, ci, ref_root_bh,
1763 ret = ocfs2_get_refcount_rec(ci, ref_root_bh,
1805 ref_root_bh,
1826 struct buffer_head *ref_root_bh,
1882 ret = ocfs2_expand_refcount_tree(handle, ci, ref_root_bh,
1893 ret = ocfs2_get_refcount_rec(ci, ref_root_bh,
1982 struct buffer_head *ref_root_bh,
1997 ret = ocfs2_get_refcount_rec(ci, ref_root_bh,
2035 ret = ocfs2_insert_refcount_rec(handle, ci, ref_root_bh,
2054 ref_root_bh, ref_leaf_bh,
2076 struct buffer_head *ref_root_bh,
2094 ocfs2_init_refcount_extent_tree(&et, ci, ref_root_bh);
2118 ret = ocfs2_journal_access_rb(handle, ci, ref_root_bh,
2125 rb = (struct ocfs2_refcount_block *)ref_root_bh->b_data;
2137 (unsigned long long)ref_root_bh->b_blocknr);
2148 ocfs2_journal_dirty(handle, ref_root_bh);
2156 struct buffer_head *ref_root_bh,
2161 return __ocfs2_increase_refcount(handle, ci, ref_root_bh,
2168 struct buffer_head *ref_root_bh,
2199 ref_root_bh, ref_leaf_bh,
2210 if (!rb->rf_records.rl_used && ref_leaf_bh != ref_root_bh) {
2211 ret = ocfs2_remove_refcount_extent(handle, ci, ref_root_bh,
2224 struct buffer_head *ref_root_bh,
2241 ret = ocfs2_get_refcount_rec(ci, ref_root_bh,
2257 ret = ocfs2_decrease_refcount_rec(handle, ci, ref_root_bh,
2296 struct buffer_head *ref_root_bh = NULL;
2314 &ref_root_bh);
2320 ret = __ocfs2_decrease_refcount(handle, &tree->rf_ci, ref_root_bh,
2325 brelse(ref_root_bh);
2372 struct buffer_head *ref_root_bh,
2386 ret = ocfs2_get_refcount_rec(ci, ref_root_bh,
2486 rb = (struct ocfs2_refcount_block *)ref_root_bh->b_data;
2490 ocfs2_init_refcount_extent_tree(&et, ci, ref_root_bh);
2529 struct buffer_head *ref_root_bh = NULL;
2549 &ref_root_bh);
2557 ref_root_bh,
2568 brelse(ref_root_bh);
2842 struct buffer_head *ref_root_bh,
2862 ret = ocfs2_calc_refcount_meta_credits(sb, ref_ci, ref_root_bh,
3224 context->ref_root_bh,
3246 ret = ocfs2_get_refcount_rec(ref_ci, context->ref_root_bh,
3301 context->ref_root_bh,
3417 struct buffer_head *ref_root_bh = NULL;
3445 1, &ref_tree, &ref_root_bh);
3455 context->ref_root_bh = ref_root_bh;
3474 brelse(ref_root_bh);
3539 struct buffer_head *ref_root_bh,
3562 ret = ocfs2_get_refcount_rec(ref_ci, ref_root_bh,
3602 rb = (struct ocfs2_refcount_block *)ref_root_bh->b_data;
3608 ocfs2_init_refcount_extent_tree(&et, ref_ci, ref_root_bh);
3625 struct buffer_head *ref_root_bh,
3657 context->ref_root_bh = ref_root_bh;
3686 struct buffer_head *ref_root_bh,
3701 ref_ci, ref_root_bh,
3738 ret = __ocfs2_increase_refcount(handle, ref_ci, ref_root_bh,
3798 struct buffer_head *ref_root_bh = NULL;
3822 &ref_tree, &ref_root_bh);
3847 ref_root_bh, cpos,
3864 ref_root_bh,
3880 brelse(ref_root_bh);
3899 struct buffer_head *ref_root_bh,
3913 ref_root_bh, &meta_ac,
3935 ret = ocfs2_increase_refcount(handle, ref_ci, ref_root_bh,
4003 struct buffer_head *ref_root_bh,
4027 ref_ci, ref_root_bh,
4129 struct buffer_head *ref_root_bh = NULL;
4153 1, &ref_tree, &ref_root_bh);
4160 &ref_tree->rf_ci, ref_root_bh,
4169 brelse(ref_root_bh);
4514 struct buffer_head *ref_root_bh = NULL;
4563 1, &ref_tree, &ref_root_bh);
4573 ref_root_bh, spos,
4586 ref_root_bh,
4597 brelse(ref_root_bh);
4607 brelse(ref_root_bh);