Lines Matching refs:ref_root_bh
49 struct buffer_head *ref_root_bh;
329 struct buffer_head *ref_root_bh = NULL;
357 ret = ocfs2_read_refcount_block(&new->rf_ci, rf_blkno, &ref_root_bh);
365 ref_rb = (struct ocfs2_refcount_block *)ref_root_bh->b_data;
391 brelse(ref_root_bh);
451 struct buffer_head *ref_root_bh = NULL;
471 &ref_root_bh);
478 rb = (struct ocfs2_refcount_block *)ref_root_bh->b_data;
502 brelse(ref_root_bh);
503 ref_root_bh = NULL;
509 *ref_bh = ref_root_bh;
510 ref_root_bh = NULL;
513 brelse(ref_root_bh);
700 struct buffer_head *ref_root_bh = NULL;
707 &ref_tree, &ref_root_bh);
727 ret = ocfs2_journal_access_rb(handle, &ref_tree->rf_ci, ref_root_bh,
734 rb = (struct ocfs2_refcount_block *)ref_root_bh->b_data;
737 ocfs2_journal_dirty(handle, ref_root_bh);
750 brelse(ref_root_bh);
958 struct buffer_head *ref_root_bh,
995 ocfs2_init_refcount_extent_tree(&et, ci, ref_root_bh);
1058 struct buffer_head *ref_root_bh,
1072 (struct ocfs2_refcount_block *)ref_root_bh->b_data;
1075 ocfs2_find_refcount_rec_in_rl(ci, ref_root_bh, cpos, len,
1077 *ret_bh = ref_root_bh;
1078 get_bh(ref_root_bh);
1115 ret = ocfs2_get_refcount_cpos_end(ci, ref_root_bh,
1277 struct buffer_head *ref_root_bh,
1289 (struct ocfs2_refcount_block *)ref_root_bh->b_data;
1291 ret = ocfs2_journal_access_rb(handle, ci, ref_root_bh,
1326 memcpy(new_bh->b_data, ref_root_bh->b_data, sb->s_blocksize);
1334 new_rb->rf_parent = cpu_to_le64(ref_root_bh->b_blocknr);
1348 ocfs2_journal_dirty(handle, ref_root_bh);
1508 struct buffer_head *ref_root_bh,
1518 (struct ocfs2_refcount_block *)ref_root_bh->b_data;
1525 ret = ocfs2_journal_access_rb(handle, ci, ref_root_bh,
1571 new_rb->rf_parent = cpu_to_le64(ref_root_bh->b_blocknr);
1586 ocfs2_init_refcount_extent_tree(&ref_et, ci, ref_root_bh);
1604 struct buffer_head *ref_root_bh,
1611 if (ref_root_bh == ref_leaf_bh) {
1616 ret = ocfs2_expand_inline_ref_root(handle, ci, ref_root_bh,
1629 ret = ocfs2_new_leaf_refcount_block(handle, ci, ref_root_bh,
1646 struct buffer_head *ref_root_bh,
1655 (struct ocfs2_refcount_block *)ref_root_bh->b_data;
1667 ocfs2_init_refcount_extent_tree(&et, ci, ref_root_bh);
1730 struct buffer_head *ref_root_bh,
1748 ret = ocfs2_expand_refcount_tree(handle, ci, ref_root_bh,
1755 ret = ocfs2_get_refcount_rec(ci, ref_root_bh,
1797 ref_root_bh,
1818 struct buffer_head *ref_root_bh,
1874 ret = ocfs2_expand_refcount_tree(handle, ci, ref_root_bh,
1885 ret = ocfs2_get_refcount_rec(ci, ref_root_bh,
1974 struct buffer_head *ref_root_bh,
1989 ret = ocfs2_get_refcount_rec(ci, ref_root_bh,
2027 ret = ocfs2_insert_refcount_rec(handle, ci, ref_root_bh,
2046 ref_root_bh, ref_leaf_bh,
2068 struct buffer_head *ref_root_bh,
2086 ocfs2_init_refcount_extent_tree(&et, ci, ref_root_bh);
2110 ret = ocfs2_journal_access_rb(handle, ci, ref_root_bh,
2117 rb = (struct ocfs2_refcount_block *)ref_root_bh->b_data;
2129 (unsigned long long)ref_root_bh->b_blocknr);
2140 ocfs2_journal_dirty(handle, ref_root_bh);
2148 struct buffer_head *ref_root_bh,
2153 return __ocfs2_increase_refcount(handle, ci, ref_root_bh,
2160 struct buffer_head *ref_root_bh,
2191 ref_root_bh, ref_leaf_bh,
2202 if (!rb->rf_records.rl_used && ref_leaf_bh != ref_root_bh) {
2203 ret = ocfs2_remove_refcount_extent(handle, ci, ref_root_bh,
2216 struct buffer_head *ref_root_bh,
2233 ret = ocfs2_get_refcount_rec(ci, ref_root_bh,
2249 ret = ocfs2_decrease_refcount_rec(handle, ci, ref_root_bh,
2288 struct buffer_head *ref_root_bh = NULL;
2306 &ref_root_bh);
2312 ret = __ocfs2_decrease_refcount(handle, &tree->rf_ci, ref_root_bh,
2317 brelse(ref_root_bh);
2364 struct buffer_head *ref_root_bh,
2378 ret = ocfs2_get_refcount_rec(ci, ref_root_bh,
2478 rb = (struct ocfs2_refcount_block *)ref_root_bh->b_data;
2482 ocfs2_init_refcount_extent_tree(&et, ci, ref_root_bh);
2521 struct buffer_head *ref_root_bh = NULL;
2541 &ref_root_bh);
2549 ref_root_bh,
2560 brelse(ref_root_bh);
2834 struct buffer_head *ref_root_bh,
2854 ret = ocfs2_calc_refcount_meta_credits(sb, ref_ci, ref_root_bh,
3186 context->ref_root_bh,
3208 ret = ocfs2_get_refcount_rec(ref_ci, context->ref_root_bh,
3263 context->ref_root_bh,
3379 struct buffer_head *ref_root_bh = NULL;
3407 1, &ref_tree, &ref_root_bh);
3417 context->ref_root_bh = ref_root_bh;
3436 brelse(ref_root_bh);
3501 struct buffer_head *ref_root_bh,
3524 ret = ocfs2_get_refcount_rec(ref_ci, ref_root_bh,
3564 rb = (struct ocfs2_refcount_block *)ref_root_bh->b_data;
3570 ocfs2_init_refcount_extent_tree(&et, ref_ci, ref_root_bh);
3587 struct buffer_head *ref_root_bh,
3619 context->ref_root_bh = ref_root_bh;
3648 struct buffer_head *ref_root_bh,
3663 ref_ci, ref_root_bh,
3700 ret = __ocfs2_increase_refcount(handle, ref_ci, ref_root_bh,
3760 struct buffer_head *ref_root_bh = NULL;
3784 &ref_tree, &ref_root_bh);
3809 ref_root_bh, cpos,
3826 ref_root_bh,
3842 brelse(ref_root_bh);
3861 struct buffer_head *ref_root_bh,
3875 ref_root_bh, &meta_ac,
3897 ret = ocfs2_increase_refcount(handle, ref_ci, ref_root_bh,
3965 struct buffer_head *ref_root_bh,
3989 ref_ci, ref_root_bh,
4091 struct buffer_head *ref_root_bh = NULL;
4115 1, &ref_tree, &ref_root_bh);
4122 &ref_tree->rf_ci, ref_root_bh,
4131 brelse(ref_root_bh);
4497 struct buffer_head *ref_root_bh = NULL;
4546 1, &ref_tree, &ref_root_bh);
4556 ref_root_bh, spos,
4569 ref_root_bh,
4580 brelse(ref_root_bh);
4590 brelse(ref_root_bh);