Lines Matching refs:ref_root_bh

50 	struct buffer_head *ref_root_bh;  member
328 struct buffer_head *ref_root_bh = NULL; in ocfs2_get_refcount_tree() local
356 ret = ocfs2_read_refcount_block(&new->rf_ci, rf_blkno, &ref_root_bh); in ocfs2_get_refcount_tree()
364 ref_rb = (struct ocfs2_refcount_block *)ref_root_bh->b_data; in ocfs2_get_refcount_tree()
390 brelse(ref_root_bh); in ocfs2_get_refcount_tree()
450 struct buffer_head *ref_root_bh = NULL; in ocfs2_lock_refcount_tree() local
470 &ref_root_bh); in ocfs2_lock_refcount_tree()
477 rb = (struct ocfs2_refcount_block *)ref_root_bh->b_data; in ocfs2_lock_refcount_tree()
501 brelse(ref_root_bh); in ocfs2_lock_refcount_tree()
502 ref_root_bh = NULL; in ocfs2_lock_refcount_tree()
508 *ref_bh = ref_root_bh; in ocfs2_lock_refcount_tree()
509 ref_root_bh = NULL; in ocfs2_lock_refcount_tree()
512 brelse(ref_root_bh); in ocfs2_lock_refcount_tree()
699 struct buffer_head *ref_root_bh = NULL; in ocfs2_set_refcount_tree() local
706 &ref_tree, &ref_root_bh); in ocfs2_set_refcount_tree()
726 ret = ocfs2_journal_access_rb(handle, &ref_tree->rf_ci, ref_root_bh, in ocfs2_set_refcount_tree()
733 rb = (struct ocfs2_refcount_block *)ref_root_bh->b_data; in ocfs2_set_refcount_tree()
736 ocfs2_journal_dirty(handle, ref_root_bh); in ocfs2_set_refcount_tree()
749 brelse(ref_root_bh); in ocfs2_set_refcount_tree()
957 struct buffer_head *ref_root_bh, in ocfs2_get_refcount_cpos_end() argument
994 ocfs2_init_refcount_extent_tree(&et, ci, ref_root_bh); in ocfs2_get_refcount_cpos_end()
1057 struct buffer_head *ref_root_bh, in ocfs2_get_refcount_rec() argument
1071 (struct ocfs2_refcount_block *)ref_root_bh->b_data; in ocfs2_get_refcount_rec()
1074 ocfs2_find_refcount_rec_in_rl(ci, ref_root_bh, cpos, len, in ocfs2_get_refcount_rec()
1076 *ret_bh = ref_root_bh; in ocfs2_get_refcount_rec()
1077 get_bh(ref_root_bh); in ocfs2_get_refcount_rec()
1114 ret = ocfs2_get_refcount_cpos_end(ci, ref_root_bh, in ocfs2_get_refcount_rec()
1276 struct buffer_head *ref_root_bh, in ocfs2_expand_inline_ref_root() argument
1288 (struct ocfs2_refcount_block *)ref_root_bh->b_data; in ocfs2_expand_inline_ref_root()
1290 ret = ocfs2_journal_access_rb(handle, ci, ref_root_bh, in ocfs2_expand_inline_ref_root()
1325 memcpy(new_bh->b_data, ref_root_bh->b_data, sb->s_blocksize); in ocfs2_expand_inline_ref_root()
1333 new_rb->rf_parent = cpu_to_le64(ref_root_bh->b_blocknr); in ocfs2_expand_inline_ref_root()
1347 ocfs2_journal_dirty(handle, ref_root_bh); in ocfs2_expand_inline_ref_root()
1514 struct buffer_head *ref_root_bh, in ocfs2_new_leaf_refcount_block() argument
1524 (struct ocfs2_refcount_block *)ref_root_bh->b_data; in ocfs2_new_leaf_refcount_block()
1531 ret = ocfs2_journal_access_rb(handle, ci, ref_root_bh, in ocfs2_new_leaf_refcount_block()
1577 new_rb->rf_parent = cpu_to_le64(ref_root_bh->b_blocknr); in ocfs2_new_leaf_refcount_block()
1592 ocfs2_init_refcount_extent_tree(&ref_et, ci, ref_root_bh); in ocfs2_new_leaf_refcount_block()
1610 struct buffer_head *ref_root_bh, in ocfs2_expand_refcount_tree() argument
1617 if (ref_root_bh == ref_leaf_bh) { in ocfs2_expand_refcount_tree()
1622 ret = ocfs2_expand_inline_ref_root(handle, ci, ref_root_bh, in ocfs2_expand_refcount_tree()
1635 ret = ocfs2_new_leaf_refcount_block(handle, ci, ref_root_bh, in ocfs2_expand_refcount_tree()
1652 struct buffer_head *ref_root_bh, in ocfs2_adjust_refcount_rec() argument
1661 (struct ocfs2_refcount_block *)ref_root_bh->b_data; in ocfs2_adjust_refcount_rec()
1673 ocfs2_init_refcount_extent_tree(&et, ci, ref_root_bh); in ocfs2_adjust_refcount_rec()
1736 struct buffer_head *ref_root_bh, in ocfs2_insert_refcount_rec() argument
1754 ret = ocfs2_expand_refcount_tree(handle, ci, ref_root_bh, in ocfs2_insert_refcount_rec()
1761 ret = ocfs2_get_refcount_rec(ci, ref_root_bh, in ocfs2_insert_refcount_rec()
1803 ref_root_bh, in ocfs2_insert_refcount_rec()
1824 struct buffer_head *ref_root_bh, in ocfs2_split_refcount_rec() argument
1880 ret = ocfs2_expand_refcount_tree(handle, ci, ref_root_bh, in ocfs2_split_refcount_rec()
1891 ret = ocfs2_get_refcount_rec(ci, ref_root_bh, in ocfs2_split_refcount_rec()
1980 struct buffer_head *ref_root_bh, in __ocfs2_increase_refcount() argument
1995 ret = ocfs2_get_refcount_rec(ci, ref_root_bh, in __ocfs2_increase_refcount()
2033 ret = ocfs2_insert_refcount_rec(handle, ci, ref_root_bh, in __ocfs2_increase_refcount()
2052 ref_root_bh, ref_leaf_bh, in __ocfs2_increase_refcount()
2074 struct buffer_head *ref_root_bh, in ocfs2_remove_refcount_extent() argument
2092 ocfs2_init_refcount_extent_tree(&et, ci, ref_root_bh); in ocfs2_remove_refcount_extent()
2116 ret = ocfs2_journal_access_rb(handle, ci, ref_root_bh, in ocfs2_remove_refcount_extent()
2123 rb = (struct ocfs2_refcount_block *)ref_root_bh->b_data; in ocfs2_remove_refcount_extent()
2135 (unsigned long long)ref_root_bh->b_blocknr); in ocfs2_remove_refcount_extent()
2146 ocfs2_journal_dirty(handle, ref_root_bh); in ocfs2_remove_refcount_extent()
2154 struct buffer_head *ref_root_bh, in ocfs2_increase_refcount() argument
2159 return __ocfs2_increase_refcount(handle, ci, ref_root_bh, in ocfs2_increase_refcount()
2166 struct buffer_head *ref_root_bh, in ocfs2_decrease_refcount_rec() argument
2197 ref_root_bh, ref_leaf_bh, in ocfs2_decrease_refcount_rec()
2208 if (!rb->rf_records.rl_used && ref_leaf_bh != ref_root_bh) { in ocfs2_decrease_refcount_rec()
2209 ret = ocfs2_remove_refcount_extent(handle, ci, ref_root_bh, in ocfs2_decrease_refcount_rec()
2222 struct buffer_head *ref_root_bh, in __ocfs2_decrease_refcount() argument
2239 ret = ocfs2_get_refcount_rec(ci, ref_root_bh, in __ocfs2_decrease_refcount()
2255 ret = ocfs2_decrease_refcount_rec(handle, ci, ref_root_bh, in __ocfs2_decrease_refcount()
2294 struct buffer_head *ref_root_bh = NULL; in ocfs2_decrease_refcount() local
2312 &ref_root_bh); in ocfs2_decrease_refcount()
2318 ret = __ocfs2_decrease_refcount(handle, &tree->rf_ci, ref_root_bh, in ocfs2_decrease_refcount()
2323 brelse(ref_root_bh); in ocfs2_decrease_refcount()
2370 struct buffer_head *ref_root_bh, in ocfs2_calc_refcount_meta_credits() argument
2384 ret = ocfs2_get_refcount_rec(ci, ref_root_bh, in ocfs2_calc_refcount_meta_credits()
2484 rb = (struct ocfs2_refcount_block *)ref_root_bh->b_data; in ocfs2_calc_refcount_meta_credits()
2488 ocfs2_init_refcount_extent_tree(&et, ci, ref_root_bh); in ocfs2_calc_refcount_meta_credits()
2527 struct buffer_head *ref_root_bh = NULL; in ocfs2_prepare_refcount_change_for_del() local
2547 &ref_root_bh); in ocfs2_prepare_refcount_change_for_del()
2555 ref_root_bh, in ocfs2_prepare_refcount_change_for_del()
2566 brelse(ref_root_bh); in ocfs2_prepare_refcount_change_for_del()
2840 struct buffer_head *ref_root_bh, in ocfs2_lock_refcount_allocators() argument
2860 ret = ocfs2_calc_refcount_meta_credits(sb, ref_ci, ref_root_bh, in ocfs2_lock_refcount_allocators()
3222 context->ref_root_bh, in ocfs2_make_clusters_writable()
3244 ret = ocfs2_get_refcount_rec(ref_ci, context->ref_root_bh, in ocfs2_make_clusters_writable()
3299 context->ref_root_bh, in ocfs2_make_clusters_writable()
3415 struct buffer_head *ref_root_bh = NULL; in ocfs2_refcount_cow_hunk() local
3443 1, &ref_tree, &ref_root_bh); in ocfs2_refcount_cow_hunk()
3453 context->ref_root_bh = ref_root_bh; in ocfs2_refcount_cow_hunk()
3472 brelse(ref_root_bh); in ocfs2_refcount_cow_hunk()
3537 struct buffer_head *ref_root_bh, in ocfs2_refcounted_xattr_delete_need() argument
3560 ret = ocfs2_get_refcount_rec(ref_ci, ref_root_bh, in ocfs2_refcounted_xattr_delete_need()
3600 rb = (struct ocfs2_refcount_block *)ref_root_bh->b_data; in ocfs2_refcounted_xattr_delete_need()
3606 ocfs2_init_refcount_extent_tree(&et, ref_ci, ref_root_bh); in ocfs2_refcounted_xattr_delete_need()
3623 struct buffer_head *ref_root_bh, in ocfs2_refcount_cow_xattr() argument
3655 context->ref_root_bh = ref_root_bh; in ocfs2_refcount_cow_xattr()
3684 struct buffer_head *ref_root_bh, in ocfs2_add_refcount_flag() argument
3699 ref_ci, ref_root_bh, in ocfs2_add_refcount_flag()
3736 ret = __ocfs2_increase_refcount(handle, ref_ci, ref_root_bh, in ocfs2_add_refcount_flag()
3796 struct buffer_head *ref_root_bh = NULL; in ocfs2_attach_refcount_tree() local
3820 &ref_tree, &ref_root_bh); in ocfs2_attach_refcount_tree()
3845 ref_root_bh, cpos, in ocfs2_attach_refcount_tree()
3862 ref_root_bh, in ocfs2_attach_refcount_tree()
3878 brelse(ref_root_bh); in ocfs2_attach_refcount_tree()
3897 struct buffer_head *ref_root_bh, in ocfs2_add_refcounted_extent() argument
3911 ref_root_bh, &meta_ac, in ocfs2_add_refcounted_extent()
3933 ret = ocfs2_increase_refcount(handle, ref_ci, ref_root_bh, in ocfs2_add_refcounted_extent()
4001 struct buffer_head *ref_root_bh, in ocfs2_duplicate_extent_list() argument
4025 ref_ci, ref_root_bh, in ocfs2_duplicate_extent_list()
4127 struct buffer_head *ref_root_bh = NULL; in ocfs2_create_reflink_node() local
4151 1, &ref_tree, &ref_root_bh); in ocfs2_create_reflink_node()
4158 &ref_tree->rf_ci, ref_root_bh, in ocfs2_create_reflink_node()
4167 brelse(ref_root_bh); in ocfs2_create_reflink_node()
4512 struct buffer_head *ref_root_bh = NULL; in ocfs2_reflink_remap_extent() local
4561 1, &ref_tree, &ref_root_bh); in ocfs2_reflink_remap_extent()
4571 ref_root_bh, spos, in ocfs2_reflink_remap_extent()
4584 ref_root_bh, in ocfs2_reflink_remap_extent()
4595 brelse(ref_root_bh); in ocfs2_reflink_remap_extent()
4605 brelse(ref_root_bh); in ocfs2_reflink_remap_extent()