Lines Matching defs:ref_root_bh

48 	struct buffer_head *ref_root_bh;
328 struct buffer_head *ref_root_bh = NULL;
356 ret = ocfs2_read_refcount_block(&new->rf_ci, rf_blkno, &ref_root_bh);
364 ref_rb = (struct ocfs2_refcount_block *)ref_root_bh->b_data;
390 brelse(ref_root_bh);
450 struct buffer_head *ref_root_bh = NULL;
470 &ref_root_bh);
477 rb = (struct ocfs2_refcount_block *)ref_root_bh->b_data;
501 brelse(ref_root_bh);
502 ref_root_bh = NULL;
508 *ref_bh = ref_root_bh;
509 ref_root_bh = NULL;
512 brelse(ref_root_bh);
699 struct buffer_head *ref_root_bh = NULL;
706 &ref_tree, &ref_root_bh);
726 ret = ocfs2_journal_access_rb(handle, &ref_tree->rf_ci, ref_root_bh,
733 rb = (struct ocfs2_refcount_block *)ref_root_bh->b_data;
736 ocfs2_journal_dirty(handle, ref_root_bh);
749 brelse(ref_root_bh);
957 struct buffer_head *ref_root_bh,
994 ocfs2_init_refcount_extent_tree(&et, ci, ref_root_bh);
1057 struct buffer_head *ref_root_bh,
1071 (struct ocfs2_refcount_block *)ref_root_bh->b_data;
1074 ocfs2_find_refcount_rec_in_rl(ci, ref_root_bh, cpos, len,
1076 *ret_bh = ref_root_bh;
1077 get_bh(ref_root_bh);
1114 ret = ocfs2_get_refcount_cpos_end(ci, ref_root_bh,
1276 struct buffer_head *ref_root_bh,
1288 (struct ocfs2_refcount_block *)ref_root_bh->b_data;
1290 ret = ocfs2_journal_access_rb(handle, ci, ref_root_bh,
1325 memcpy(new_bh->b_data, ref_root_bh->b_data, sb->s_blocksize);
1333 new_rb->rf_parent = cpu_to_le64(ref_root_bh->b_blocknr);
1347 ocfs2_journal_dirty(handle, ref_root_bh);
1514 struct buffer_head *ref_root_bh,
1524 (struct ocfs2_refcount_block *)ref_root_bh->b_data;
1531 ret = ocfs2_journal_access_rb(handle, ci, ref_root_bh,
1577 new_rb->rf_parent = cpu_to_le64(ref_root_bh->b_blocknr);
1592 ocfs2_init_refcount_extent_tree(&ref_et, ci, ref_root_bh);
1610 struct buffer_head *ref_root_bh,
1617 if (ref_root_bh == ref_leaf_bh) {
1622 ret = ocfs2_expand_inline_ref_root(handle, ci, ref_root_bh,
1635 ret = ocfs2_new_leaf_refcount_block(handle, ci, ref_root_bh,
1652 struct buffer_head *ref_root_bh,
1661 (struct ocfs2_refcount_block *)ref_root_bh->b_data;
1673 ocfs2_init_refcount_extent_tree(&et, ci, ref_root_bh);
1736 struct buffer_head *ref_root_bh,
1754 ret = ocfs2_expand_refcount_tree(handle, ci, ref_root_bh,
1761 ret = ocfs2_get_refcount_rec(ci, ref_root_bh,
1803 ref_root_bh,
1824 struct buffer_head *ref_root_bh,
1880 ret = ocfs2_expand_refcount_tree(handle, ci, ref_root_bh,
1891 ret = ocfs2_get_refcount_rec(ci, ref_root_bh,
1980 struct buffer_head *ref_root_bh,
1995 ret = ocfs2_get_refcount_rec(ci, ref_root_bh,
2033 ret = ocfs2_insert_refcount_rec(handle, ci, ref_root_bh,
2052 ref_root_bh, ref_leaf_bh,
2074 struct buffer_head *ref_root_bh,
2092 ocfs2_init_refcount_extent_tree(&et, ci, ref_root_bh);
2116 ret = ocfs2_journal_access_rb(handle, ci, ref_root_bh,
2123 rb = (struct ocfs2_refcount_block *)ref_root_bh->b_data;
2135 (unsigned long long)ref_root_bh->b_blocknr);
2146 ocfs2_journal_dirty(handle, ref_root_bh);
2154 struct buffer_head *ref_root_bh,
2159 return __ocfs2_increase_refcount(handle, ci, ref_root_bh,
2166 struct buffer_head *ref_root_bh,
2197 ref_root_bh, ref_leaf_bh,
2208 if (!rb->rf_records.rl_used && ref_leaf_bh != ref_root_bh) {
2209 ret = ocfs2_remove_refcount_extent(handle, ci, ref_root_bh,
2222 struct buffer_head *ref_root_bh,
2239 ret = ocfs2_get_refcount_rec(ci, ref_root_bh,
2255 ret = ocfs2_decrease_refcount_rec(handle, ci, ref_root_bh,
2294 struct buffer_head *ref_root_bh = NULL;
2312 &ref_root_bh);
2318 ret = __ocfs2_decrease_refcount(handle, &tree->rf_ci, ref_root_bh,
2323 brelse(ref_root_bh);
2370 struct buffer_head *ref_root_bh,
2384 ret = ocfs2_get_refcount_rec(ci, ref_root_bh,
2484 rb = (struct ocfs2_refcount_block *)ref_root_bh->b_data;
2488 ocfs2_init_refcount_extent_tree(&et, ci, ref_root_bh);
2527 struct buffer_head *ref_root_bh = NULL;
2547 &ref_root_bh);
2555 ref_root_bh,
2566 brelse(ref_root_bh);
2840 struct buffer_head *ref_root_bh,
2860 ret = ocfs2_calc_refcount_meta_credits(sb, ref_ci, ref_root_bh,
3195 context->ref_root_bh,
3217 ret = ocfs2_get_refcount_rec(ref_ci, context->ref_root_bh,
3272 context->ref_root_bh,
3388 struct buffer_head *ref_root_bh = NULL;
3416 1, &ref_tree, &ref_root_bh);
3426 context->ref_root_bh = ref_root_bh;
3445 brelse(ref_root_bh);
3510 struct buffer_head *ref_root_bh,
3533 ret = ocfs2_get_refcount_rec(ref_ci, ref_root_bh,
3573 rb = (struct ocfs2_refcount_block *)ref_root_bh->b_data;
3579 ocfs2_init_refcount_extent_tree(&et, ref_ci, ref_root_bh);
3596 struct buffer_head *ref_root_bh,
3628 context->ref_root_bh = ref_root_bh;
3657 struct buffer_head *ref_root_bh,
3672 ref_ci, ref_root_bh,
3709 ret = __ocfs2_increase_refcount(handle, ref_ci, ref_root_bh,
3769 struct buffer_head *ref_root_bh = NULL;
3793 &ref_tree, &ref_root_bh);
3818 ref_root_bh, cpos,
3835 ref_root_bh,
3851 brelse(ref_root_bh);
3870 struct buffer_head *ref_root_bh,
3884 ref_root_bh, &meta_ac,
3906 ret = ocfs2_increase_refcount(handle, ref_ci, ref_root_bh,
3974 struct buffer_head *ref_root_bh,
3998 ref_ci, ref_root_bh,
4100 struct buffer_head *ref_root_bh = NULL;
4124 1, &ref_tree, &ref_root_bh);
4131 &ref_tree->rf_ci, ref_root_bh,
4140 brelse(ref_root_bh);
4485 struct buffer_head *ref_root_bh = NULL;
4534 1, &ref_tree, &ref_root_bh);
4544 ref_root_bh, spos,
4557 ref_root_bh,
4568 brelse(ref_root_bh);
4578 brelse(ref_root_bh);