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()
1516 struct buffer_head *ref_root_bh, in ocfs2_new_leaf_refcount_block() argument
1526 (struct ocfs2_refcount_block *)ref_root_bh->b_data; in ocfs2_new_leaf_refcount_block()
1533 ret = ocfs2_journal_access_rb(handle, ci, ref_root_bh, in ocfs2_new_leaf_refcount_block()
1579 new_rb->rf_parent = cpu_to_le64(ref_root_bh->b_blocknr); in ocfs2_new_leaf_refcount_block()
1594 ocfs2_init_refcount_extent_tree(&ref_et, ci, ref_root_bh); in ocfs2_new_leaf_refcount_block()
1612 struct buffer_head *ref_root_bh, in ocfs2_expand_refcount_tree() argument
1619 if (ref_root_bh == ref_leaf_bh) { in ocfs2_expand_refcount_tree()
1624 ret = ocfs2_expand_inline_ref_root(handle, ci, ref_root_bh, in ocfs2_expand_refcount_tree()
1637 ret = ocfs2_new_leaf_refcount_block(handle, ci, ref_root_bh, in ocfs2_expand_refcount_tree()
1654 struct buffer_head *ref_root_bh, in ocfs2_adjust_refcount_rec() argument
1663 (struct ocfs2_refcount_block *)ref_root_bh->b_data; in ocfs2_adjust_refcount_rec()
1675 ocfs2_init_refcount_extent_tree(&et, ci, ref_root_bh); in ocfs2_adjust_refcount_rec()
1738 struct buffer_head *ref_root_bh, in ocfs2_insert_refcount_rec() argument
1756 ret = ocfs2_expand_refcount_tree(handle, ci, ref_root_bh, in ocfs2_insert_refcount_rec()
1763 ret = ocfs2_get_refcount_rec(ci, ref_root_bh, in ocfs2_insert_refcount_rec()
1805 ref_root_bh, in ocfs2_insert_refcount_rec()
1826 struct buffer_head *ref_root_bh, in ocfs2_split_refcount_rec() argument
1882 ret = ocfs2_expand_refcount_tree(handle, ci, ref_root_bh, in ocfs2_split_refcount_rec()
1893 ret = ocfs2_get_refcount_rec(ci, ref_root_bh, in ocfs2_split_refcount_rec()
1982 struct buffer_head *ref_root_bh, in __ocfs2_increase_refcount() argument
1997 ret = ocfs2_get_refcount_rec(ci, ref_root_bh, in __ocfs2_increase_refcount()
2035 ret = ocfs2_insert_refcount_rec(handle, ci, ref_root_bh, in __ocfs2_increase_refcount()
2054 ref_root_bh, ref_leaf_bh, in __ocfs2_increase_refcount()
2076 struct buffer_head *ref_root_bh, in ocfs2_remove_refcount_extent() argument
2094 ocfs2_init_refcount_extent_tree(&et, ci, ref_root_bh); in ocfs2_remove_refcount_extent()
2118 ret = ocfs2_journal_access_rb(handle, ci, ref_root_bh, in ocfs2_remove_refcount_extent()
2125 rb = (struct ocfs2_refcount_block *)ref_root_bh->b_data; in ocfs2_remove_refcount_extent()
2137 (unsigned long long)ref_root_bh->b_blocknr); in ocfs2_remove_refcount_extent()
2148 ocfs2_journal_dirty(handle, ref_root_bh); in ocfs2_remove_refcount_extent()
2156 struct buffer_head *ref_root_bh, in ocfs2_increase_refcount() argument
2161 return __ocfs2_increase_refcount(handle, ci, ref_root_bh, in ocfs2_increase_refcount()
2168 struct buffer_head *ref_root_bh, in ocfs2_decrease_refcount_rec() argument
2199 ref_root_bh, ref_leaf_bh, in ocfs2_decrease_refcount_rec()
2210 if (!rb->rf_records.rl_used && ref_leaf_bh != ref_root_bh) { in ocfs2_decrease_refcount_rec()
2211 ret = ocfs2_remove_refcount_extent(handle, ci, ref_root_bh, in ocfs2_decrease_refcount_rec()
2224 struct buffer_head *ref_root_bh, in __ocfs2_decrease_refcount() argument
2241 ret = ocfs2_get_refcount_rec(ci, ref_root_bh, in __ocfs2_decrease_refcount()
2257 ret = ocfs2_decrease_refcount_rec(handle, ci, ref_root_bh, in __ocfs2_decrease_refcount()
2296 struct buffer_head *ref_root_bh = NULL; in ocfs2_decrease_refcount() local
2314 &ref_root_bh); in ocfs2_decrease_refcount()
2320 ret = __ocfs2_decrease_refcount(handle, &tree->rf_ci, ref_root_bh, in ocfs2_decrease_refcount()
2325 brelse(ref_root_bh); in ocfs2_decrease_refcount()
2372 struct buffer_head *ref_root_bh, in ocfs2_calc_refcount_meta_credits() argument
2386 ret = ocfs2_get_refcount_rec(ci, ref_root_bh, in ocfs2_calc_refcount_meta_credits()
2486 rb = (struct ocfs2_refcount_block *)ref_root_bh->b_data; in ocfs2_calc_refcount_meta_credits()
2490 ocfs2_init_refcount_extent_tree(&et, ci, ref_root_bh); in ocfs2_calc_refcount_meta_credits()
2529 struct buffer_head *ref_root_bh = NULL; in ocfs2_prepare_refcount_change_for_del() local
2549 &ref_root_bh); in ocfs2_prepare_refcount_change_for_del()
2557 ref_root_bh, in ocfs2_prepare_refcount_change_for_del()
2568 brelse(ref_root_bh); in ocfs2_prepare_refcount_change_for_del()
2842 struct buffer_head *ref_root_bh, in ocfs2_lock_refcount_allocators() argument
2862 ret = ocfs2_calc_refcount_meta_credits(sb, ref_ci, ref_root_bh, in ocfs2_lock_refcount_allocators()
3224 context->ref_root_bh, in ocfs2_make_clusters_writable()
3246 ret = ocfs2_get_refcount_rec(ref_ci, context->ref_root_bh, in ocfs2_make_clusters_writable()
3301 context->ref_root_bh, in ocfs2_make_clusters_writable()
3417 struct buffer_head *ref_root_bh = NULL; in ocfs2_refcount_cow_hunk() local
3445 1, &ref_tree, &ref_root_bh); in ocfs2_refcount_cow_hunk()
3455 context->ref_root_bh = ref_root_bh; in ocfs2_refcount_cow_hunk()
3474 brelse(ref_root_bh); in ocfs2_refcount_cow_hunk()
3539 struct buffer_head *ref_root_bh, in ocfs2_refcounted_xattr_delete_need() argument
3562 ret = ocfs2_get_refcount_rec(ref_ci, ref_root_bh, in ocfs2_refcounted_xattr_delete_need()
3602 rb = (struct ocfs2_refcount_block *)ref_root_bh->b_data; in ocfs2_refcounted_xattr_delete_need()
3608 ocfs2_init_refcount_extent_tree(&et, ref_ci, ref_root_bh); in ocfs2_refcounted_xattr_delete_need()
3625 struct buffer_head *ref_root_bh, in ocfs2_refcount_cow_xattr() argument
3657 context->ref_root_bh = ref_root_bh; in ocfs2_refcount_cow_xattr()
3686 struct buffer_head *ref_root_bh, in ocfs2_add_refcount_flag() argument
3701 ref_ci, ref_root_bh, in ocfs2_add_refcount_flag()
3738 ret = __ocfs2_increase_refcount(handle, ref_ci, ref_root_bh, in ocfs2_add_refcount_flag()
3798 struct buffer_head *ref_root_bh = NULL; in ocfs2_attach_refcount_tree() local
3822 &ref_tree, &ref_root_bh); in ocfs2_attach_refcount_tree()
3847 ref_root_bh, cpos, in ocfs2_attach_refcount_tree()
3864 ref_root_bh, in ocfs2_attach_refcount_tree()
3880 brelse(ref_root_bh); in ocfs2_attach_refcount_tree()
3899 struct buffer_head *ref_root_bh, in ocfs2_add_refcounted_extent() argument
3913 ref_root_bh, &meta_ac, in ocfs2_add_refcounted_extent()
3935 ret = ocfs2_increase_refcount(handle, ref_ci, ref_root_bh, in ocfs2_add_refcounted_extent()
4003 struct buffer_head *ref_root_bh, in ocfs2_duplicate_extent_list() argument
4027 ref_ci, ref_root_bh, in ocfs2_duplicate_extent_list()
4129 struct buffer_head *ref_root_bh = NULL; in ocfs2_create_reflink_node() local
4153 1, &ref_tree, &ref_root_bh); in ocfs2_create_reflink_node()
4160 &ref_tree->rf_ci, ref_root_bh, in ocfs2_create_reflink_node()
4169 brelse(ref_root_bh); in ocfs2_create_reflink_node()
4514 struct buffer_head *ref_root_bh = NULL; in ocfs2_reflink_remap_extent() local
4563 1, &ref_tree, &ref_root_bh); in ocfs2_reflink_remap_extent()
4573 ref_root_bh, spos, in ocfs2_reflink_remap_extent()
4586 ref_root_bh, in ocfs2_reflink_remap_extent()
4597 brelse(ref_root_bh); in ocfs2_reflink_remap_extent()
4607 brelse(ref_root_bh); in ocfs2_reflink_remap_extent()