Lines Matching refs:ref_root_bh
50 struct buffer_head *ref_root_bh; member
330 struct buffer_head *ref_root_bh = NULL; in ocfs2_get_refcount_tree() local
358 ret = ocfs2_read_refcount_block(&new->rf_ci, rf_blkno, &ref_root_bh); in ocfs2_get_refcount_tree()
366 ref_rb = (struct ocfs2_refcount_block *)ref_root_bh->b_data; in ocfs2_get_refcount_tree()
392 brelse(ref_root_bh); in ocfs2_get_refcount_tree()
452 struct buffer_head *ref_root_bh = NULL; in ocfs2_lock_refcount_tree() local
472 &ref_root_bh); in ocfs2_lock_refcount_tree()
479 rb = (struct ocfs2_refcount_block *)ref_root_bh->b_data; in ocfs2_lock_refcount_tree()
503 brelse(ref_root_bh); in ocfs2_lock_refcount_tree()
504 ref_root_bh = NULL; in ocfs2_lock_refcount_tree()
510 *ref_bh = ref_root_bh; in ocfs2_lock_refcount_tree()
511 ref_root_bh = NULL; in ocfs2_lock_refcount_tree()
514 brelse(ref_root_bh); in ocfs2_lock_refcount_tree()
701 struct buffer_head *ref_root_bh = NULL; in ocfs2_set_refcount_tree() local
708 &ref_tree, &ref_root_bh); in ocfs2_set_refcount_tree()
728 ret = ocfs2_journal_access_rb(handle, &ref_tree->rf_ci, ref_root_bh, in ocfs2_set_refcount_tree()
735 rb = (struct ocfs2_refcount_block *)ref_root_bh->b_data; in ocfs2_set_refcount_tree()
738 ocfs2_journal_dirty(handle, ref_root_bh); in ocfs2_set_refcount_tree()
751 brelse(ref_root_bh); in ocfs2_set_refcount_tree()
959 struct buffer_head *ref_root_bh, in ocfs2_get_refcount_cpos_end() argument
996 ocfs2_init_refcount_extent_tree(&et, ci, ref_root_bh); in ocfs2_get_refcount_cpos_end()
1059 struct buffer_head *ref_root_bh, in ocfs2_get_refcount_rec() argument
1073 (struct ocfs2_refcount_block *)ref_root_bh->b_data; in ocfs2_get_refcount_rec()
1076 ocfs2_find_refcount_rec_in_rl(ci, ref_root_bh, cpos, len, in ocfs2_get_refcount_rec()
1078 *ret_bh = ref_root_bh; in ocfs2_get_refcount_rec()
1079 get_bh(ref_root_bh); in ocfs2_get_refcount_rec()
1116 ret = ocfs2_get_refcount_cpos_end(ci, ref_root_bh, in ocfs2_get_refcount_rec()
1278 struct buffer_head *ref_root_bh, in ocfs2_expand_inline_ref_root() argument
1290 (struct ocfs2_refcount_block *)ref_root_bh->b_data; in ocfs2_expand_inline_ref_root()
1292 ret = ocfs2_journal_access_rb(handle, ci, ref_root_bh, in ocfs2_expand_inline_ref_root()
1327 memcpy(new_bh->b_data, ref_root_bh->b_data, sb->s_blocksize); in ocfs2_expand_inline_ref_root()
1335 new_rb->rf_parent = cpu_to_le64(ref_root_bh->b_blocknr); in ocfs2_expand_inline_ref_root()
1349 ocfs2_journal_dirty(handle, ref_root_bh); in ocfs2_expand_inline_ref_root()
1509 struct buffer_head *ref_root_bh, in ocfs2_new_leaf_refcount_block() argument
1519 (struct ocfs2_refcount_block *)ref_root_bh->b_data; in ocfs2_new_leaf_refcount_block()
1526 ret = ocfs2_journal_access_rb(handle, ci, ref_root_bh, in ocfs2_new_leaf_refcount_block()
1572 new_rb->rf_parent = cpu_to_le64(ref_root_bh->b_blocknr); in ocfs2_new_leaf_refcount_block()
1587 ocfs2_init_refcount_extent_tree(&ref_et, ci, ref_root_bh); in ocfs2_new_leaf_refcount_block()
1605 struct buffer_head *ref_root_bh, in ocfs2_expand_refcount_tree() argument
1612 if (ref_root_bh == ref_leaf_bh) { in ocfs2_expand_refcount_tree()
1617 ret = ocfs2_expand_inline_ref_root(handle, ci, ref_root_bh, in ocfs2_expand_refcount_tree()
1630 ret = ocfs2_new_leaf_refcount_block(handle, ci, ref_root_bh, in ocfs2_expand_refcount_tree()
1647 struct buffer_head *ref_root_bh, in ocfs2_adjust_refcount_rec() argument
1656 (struct ocfs2_refcount_block *)ref_root_bh->b_data; in ocfs2_adjust_refcount_rec()
1668 ocfs2_init_refcount_extent_tree(&et, ci, ref_root_bh); in ocfs2_adjust_refcount_rec()
1731 struct buffer_head *ref_root_bh, in ocfs2_insert_refcount_rec() argument
1749 ret = ocfs2_expand_refcount_tree(handle, ci, ref_root_bh, in ocfs2_insert_refcount_rec()
1756 ret = ocfs2_get_refcount_rec(ci, ref_root_bh, in ocfs2_insert_refcount_rec()
1798 ref_root_bh, in ocfs2_insert_refcount_rec()
1819 struct buffer_head *ref_root_bh, in ocfs2_split_refcount_rec() argument
1875 ret = ocfs2_expand_refcount_tree(handle, ci, ref_root_bh, in ocfs2_split_refcount_rec()
1886 ret = ocfs2_get_refcount_rec(ci, ref_root_bh, in ocfs2_split_refcount_rec()
1975 struct buffer_head *ref_root_bh, in __ocfs2_increase_refcount() argument
1990 ret = ocfs2_get_refcount_rec(ci, ref_root_bh, in __ocfs2_increase_refcount()
2028 ret = ocfs2_insert_refcount_rec(handle, ci, ref_root_bh, in __ocfs2_increase_refcount()
2047 ref_root_bh, ref_leaf_bh, in __ocfs2_increase_refcount()
2069 struct buffer_head *ref_root_bh, in ocfs2_remove_refcount_extent() argument
2087 ocfs2_init_refcount_extent_tree(&et, ci, ref_root_bh); in ocfs2_remove_refcount_extent()
2111 ret = ocfs2_journal_access_rb(handle, ci, ref_root_bh, in ocfs2_remove_refcount_extent()
2118 rb = (struct ocfs2_refcount_block *)ref_root_bh->b_data; in ocfs2_remove_refcount_extent()
2130 (unsigned long long)ref_root_bh->b_blocknr); in ocfs2_remove_refcount_extent()
2141 ocfs2_journal_dirty(handle, ref_root_bh); in ocfs2_remove_refcount_extent()
2149 struct buffer_head *ref_root_bh, in ocfs2_increase_refcount() argument
2154 return __ocfs2_increase_refcount(handle, ci, ref_root_bh, in ocfs2_increase_refcount()
2161 struct buffer_head *ref_root_bh, in ocfs2_decrease_refcount_rec() argument
2192 ref_root_bh, ref_leaf_bh, in ocfs2_decrease_refcount_rec()
2203 if (!rb->rf_records.rl_used && ref_leaf_bh != ref_root_bh) { in ocfs2_decrease_refcount_rec()
2204 ret = ocfs2_remove_refcount_extent(handle, ci, ref_root_bh, in ocfs2_decrease_refcount_rec()
2217 struct buffer_head *ref_root_bh, in __ocfs2_decrease_refcount() argument
2234 ret = ocfs2_get_refcount_rec(ci, ref_root_bh, in __ocfs2_decrease_refcount()
2250 ret = ocfs2_decrease_refcount_rec(handle, ci, ref_root_bh, in __ocfs2_decrease_refcount()
2289 struct buffer_head *ref_root_bh = NULL; in ocfs2_decrease_refcount() local
2307 &ref_root_bh); in ocfs2_decrease_refcount()
2313 ret = __ocfs2_decrease_refcount(handle, &tree->rf_ci, ref_root_bh, in ocfs2_decrease_refcount()
2318 brelse(ref_root_bh); in ocfs2_decrease_refcount()
2365 struct buffer_head *ref_root_bh, in ocfs2_calc_refcount_meta_credits() argument
2379 ret = ocfs2_get_refcount_rec(ci, ref_root_bh, in ocfs2_calc_refcount_meta_credits()
2479 rb = (struct ocfs2_refcount_block *)ref_root_bh->b_data; in ocfs2_calc_refcount_meta_credits()
2483 ocfs2_init_refcount_extent_tree(&et, ci, ref_root_bh); in ocfs2_calc_refcount_meta_credits()
2522 struct buffer_head *ref_root_bh = NULL; in ocfs2_prepare_refcount_change_for_del() local
2542 &ref_root_bh); in ocfs2_prepare_refcount_change_for_del()
2550 ref_root_bh, in ocfs2_prepare_refcount_change_for_del()
2561 brelse(ref_root_bh); in ocfs2_prepare_refcount_change_for_del()
2835 struct buffer_head *ref_root_bh, in ocfs2_lock_refcount_allocators() argument
2855 ret = ocfs2_calc_refcount_meta_credits(sb, ref_ci, ref_root_bh, in ocfs2_lock_refcount_allocators()
3187 context->ref_root_bh, in ocfs2_make_clusters_writable()
3209 ret = ocfs2_get_refcount_rec(ref_ci, context->ref_root_bh, in ocfs2_make_clusters_writable()
3264 context->ref_root_bh, in ocfs2_make_clusters_writable()
3380 struct buffer_head *ref_root_bh = NULL; in ocfs2_refcount_cow_hunk() local
3408 1, &ref_tree, &ref_root_bh); in ocfs2_refcount_cow_hunk()
3418 context->ref_root_bh = ref_root_bh; in ocfs2_refcount_cow_hunk()
3437 brelse(ref_root_bh); in ocfs2_refcount_cow_hunk()
3502 struct buffer_head *ref_root_bh, in ocfs2_refcounted_xattr_delete_need() argument
3525 ret = ocfs2_get_refcount_rec(ref_ci, ref_root_bh, in ocfs2_refcounted_xattr_delete_need()
3565 rb = (struct ocfs2_refcount_block *)ref_root_bh->b_data; in ocfs2_refcounted_xattr_delete_need()
3571 ocfs2_init_refcount_extent_tree(&et, ref_ci, ref_root_bh); in ocfs2_refcounted_xattr_delete_need()
3588 struct buffer_head *ref_root_bh, in ocfs2_refcount_cow_xattr() argument
3620 context->ref_root_bh = ref_root_bh; in ocfs2_refcount_cow_xattr()
3649 struct buffer_head *ref_root_bh, in ocfs2_add_refcount_flag() argument
3664 ref_ci, ref_root_bh, in ocfs2_add_refcount_flag()
3701 ret = __ocfs2_increase_refcount(handle, ref_ci, ref_root_bh, in ocfs2_add_refcount_flag()
3761 struct buffer_head *ref_root_bh = NULL; in ocfs2_attach_refcount_tree() local
3785 &ref_tree, &ref_root_bh); in ocfs2_attach_refcount_tree()
3810 ref_root_bh, cpos, in ocfs2_attach_refcount_tree()
3827 ref_root_bh, in ocfs2_attach_refcount_tree()
3843 brelse(ref_root_bh); in ocfs2_attach_refcount_tree()
3862 struct buffer_head *ref_root_bh, in ocfs2_add_refcounted_extent() argument
3876 ref_root_bh, &meta_ac, in ocfs2_add_refcounted_extent()
3898 ret = ocfs2_increase_refcount(handle, ref_ci, ref_root_bh, in ocfs2_add_refcounted_extent()
3966 struct buffer_head *ref_root_bh, in ocfs2_duplicate_extent_list() argument
3990 ref_ci, ref_root_bh, in ocfs2_duplicate_extent_list()
4092 struct buffer_head *ref_root_bh = NULL; in ocfs2_create_reflink_node() local
4116 1, &ref_tree, &ref_root_bh); in ocfs2_create_reflink_node()
4123 &ref_tree->rf_ci, ref_root_bh, in ocfs2_create_reflink_node()
4132 brelse(ref_root_bh); in ocfs2_create_reflink_node()
4498 struct buffer_head *ref_root_bh = NULL; in ocfs2_reflink_remap_extent() local
4547 1, &ref_tree, &ref_root_bh); in ocfs2_reflink_remap_extent()
4557 ref_root_bh, spos, in ocfs2_reflink_remap_extent()
4570 ref_root_bh, in ocfs2_reflink_remap_extent()
4581 brelse(ref_root_bh); in ocfs2_reflink_remap_extent()
4591 brelse(ref_root_bh); in ocfs2_reflink_remap_extent()