Lines Matching refs:ref_root_bh

57 	struct buffer_head *ref_root_bh;  member
337 struct buffer_head *ref_root_bh = NULL; in ocfs2_get_refcount_tree() local
365 ret = ocfs2_read_refcount_block(&new->rf_ci, rf_blkno, &ref_root_bh); in ocfs2_get_refcount_tree()
373 ref_rb = (struct ocfs2_refcount_block *)ref_root_bh->b_data; in ocfs2_get_refcount_tree()
399 brelse(ref_root_bh); in ocfs2_get_refcount_tree()
459 struct buffer_head *ref_root_bh = NULL; in ocfs2_lock_refcount_tree() local
479 &ref_root_bh); in ocfs2_lock_refcount_tree()
487 rb = (struct ocfs2_refcount_block *)ref_root_bh->b_data; in ocfs2_lock_refcount_tree()
511 brelse(ref_root_bh); in ocfs2_lock_refcount_tree()
512 ref_root_bh = NULL; in ocfs2_lock_refcount_tree()
518 *ref_bh = ref_root_bh; in ocfs2_lock_refcount_tree()
519 ref_root_bh = NULL; in ocfs2_lock_refcount_tree()
522 brelse(ref_root_bh); in ocfs2_lock_refcount_tree()
709 struct buffer_head *ref_root_bh = NULL; in ocfs2_set_refcount_tree() local
716 &ref_tree, &ref_root_bh); in ocfs2_set_refcount_tree()
736 ret = ocfs2_journal_access_rb(handle, &ref_tree->rf_ci, ref_root_bh, in ocfs2_set_refcount_tree()
743 rb = (struct ocfs2_refcount_block *)ref_root_bh->b_data; in ocfs2_set_refcount_tree()
746 ocfs2_journal_dirty(handle, ref_root_bh); in ocfs2_set_refcount_tree()
759 brelse(ref_root_bh); in ocfs2_set_refcount_tree()
967 struct buffer_head *ref_root_bh, in ocfs2_get_refcount_cpos_end() argument
1004 ocfs2_init_refcount_extent_tree(&et, ci, ref_root_bh); in ocfs2_get_refcount_cpos_end()
1067 struct buffer_head *ref_root_bh, in ocfs2_get_refcount_rec() argument
1081 (struct ocfs2_refcount_block *)ref_root_bh->b_data; in ocfs2_get_refcount_rec()
1084 ocfs2_find_refcount_rec_in_rl(ci, ref_root_bh, cpos, len, in ocfs2_get_refcount_rec()
1086 *ret_bh = ref_root_bh; in ocfs2_get_refcount_rec()
1087 get_bh(ref_root_bh); in ocfs2_get_refcount_rec()
1126 ret = ocfs2_get_refcount_cpos_end(ci, ref_root_bh, in ocfs2_get_refcount_rec()
1288 struct buffer_head *ref_root_bh, in ocfs2_expand_inline_ref_root() argument
1300 (struct ocfs2_refcount_block *)ref_root_bh->b_data; in ocfs2_expand_inline_ref_root()
1302 ret = ocfs2_journal_access_rb(handle, ci, ref_root_bh, in ocfs2_expand_inline_ref_root()
1337 memcpy(new_bh->b_data, ref_root_bh->b_data, sb->s_blocksize); in ocfs2_expand_inline_ref_root()
1345 new_rb->rf_parent = cpu_to_le64(ref_root_bh->b_blocknr); in ocfs2_expand_inline_ref_root()
1359 ocfs2_journal_dirty(handle, ref_root_bh); in ocfs2_expand_inline_ref_root()
1528 struct buffer_head *ref_root_bh, in ocfs2_new_leaf_refcount_block() argument
1538 (struct ocfs2_refcount_block *)ref_root_bh->b_data; in ocfs2_new_leaf_refcount_block()
1545 ret = ocfs2_journal_access_rb(handle, ci, ref_root_bh, in ocfs2_new_leaf_refcount_block()
1591 new_rb->rf_parent = cpu_to_le64(ref_root_bh->b_blocknr); in ocfs2_new_leaf_refcount_block()
1606 ocfs2_init_refcount_extent_tree(&ref_et, ci, ref_root_bh); in ocfs2_new_leaf_refcount_block()
1624 struct buffer_head *ref_root_bh, in ocfs2_expand_refcount_tree() argument
1631 if (ref_root_bh == ref_leaf_bh) { in ocfs2_expand_refcount_tree()
1636 ret = ocfs2_expand_inline_ref_root(handle, ci, ref_root_bh, in ocfs2_expand_refcount_tree()
1649 ret = ocfs2_new_leaf_refcount_block(handle, ci, ref_root_bh, in ocfs2_expand_refcount_tree()
1666 struct buffer_head *ref_root_bh, in ocfs2_adjust_refcount_rec() argument
1675 (struct ocfs2_refcount_block *)ref_root_bh->b_data; in ocfs2_adjust_refcount_rec()
1687 ocfs2_init_refcount_extent_tree(&et, ci, ref_root_bh); in ocfs2_adjust_refcount_rec()
1750 struct buffer_head *ref_root_bh, in ocfs2_insert_refcount_rec() argument
1768 ret = ocfs2_expand_refcount_tree(handle, ci, ref_root_bh, in ocfs2_insert_refcount_rec()
1775 ret = ocfs2_get_refcount_rec(ci, ref_root_bh, in ocfs2_insert_refcount_rec()
1817 ref_root_bh, in ocfs2_insert_refcount_rec()
1838 struct buffer_head *ref_root_bh, in ocfs2_split_refcount_rec() argument
1894 ret = ocfs2_expand_refcount_tree(handle, ci, ref_root_bh, in ocfs2_split_refcount_rec()
1905 ret = ocfs2_get_refcount_rec(ci, ref_root_bh, in ocfs2_split_refcount_rec()
1994 struct buffer_head *ref_root_bh, in __ocfs2_increase_refcount() argument
2009 ret = ocfs2_get_refcount_rec(ci, ref_root_bh, in __ocfs2_increase_refcount()
2047 ret = ocfs2_insert_refcount_rec(handle, ci, ref_root_bh, in __ocfs2_increase_refcount()
2066 ref_root_bh, ref_leaf_bh, in __ocfs2_increase_refcount()
2088 struct buffer_head *ref_root_bh, in ocfs2_remove_refcount_extent() argument
2106 ocfs2_init_refcount_extent_tree(&et, ci, ref_root_bh); in ocfs2_remove_refcount_extent()
2130 ret = ocfs2_journal_access_rb(handle, ci, ref_root_bh, in ocfs2_remove_refcount_extent()
2137 rb = (struct ocfs2_refcount_block *)ref_root_bh->b_data; in ocfs2_remove_refcount_extent()
2149 (unsigned long long)ref_root_bh->b_blocknr); in ocfs2_remove_refcount_extent()
2160 ocfs2_journal_dirty(handle, ref_root_bh); in ocfs2_remove_refcount_extent()
2168 struct buffer_head *ref_root_bh, in ocfs2_increase_refcount() argument
2173 return __ocfs2_increase_refcount(handle, ci, ref_root_bh, in ocfs2_increase_refcount()
2180 struct buffer_head *ref_root_bh, in ocfs2_decrease_refcount_rec() argument
2211 ref_root_bh, ref_leaf_bh, in ocfs2_decrease_refcount_rec()
2222 if (!rb->rf_records.rl_used && ref_leaf_bh != ref_root_bh) { in ocfs2_decrease_refcount_rec()
2223 ret = ocfs2_remove_refcount_extent(handle, ci, ref_root_bh, in ocfs2_decrease_refcount_rec()
2236 struct buffer_head *ref_root_bh, in __ocfs2_decrease_refcount() argument
2253 ret = ocfs2_get_refcount_rec(ci, ref_root_bh, in __ocfs2_decrease_refcount()
2269 ret = ocfs2_decrease_refcount_rec(handle, ci, ref_root_bh, in __ocfs2_decrease_refcount()
2309 struct buffer_head *ref_root_bh = NULL; in ocfs2_decrease_refcount() local
2327 &ref_root_bh); in ocfs2_decrease_refcount()
2333 ret = __ocfs2_decrease_refcount(handle, &tree->rf_ci, ref_root_bh, in ocfs2_decrease_refcount()
2338 brelse(ref_root_bh); in ocfs2_decrease_refcount()
2387 struct buffer_head *ref_root_bh, in ocfs2_calc_refcount_meta_credits() argument
2401 ret = ocfs2_get_refcount_rec(ci, ref_root_bh, in ocfs2_calc_refcount_meta_credits()
2501 rb = (struct ocfs2_refcount_block *)ref_root_bh->b_data; in ocfs2_calc_refcount_meta_credits()
2505 ocfs2_init_refcount_extent_tree(&et, ci, ref_root_bh); in ocfs2_calc_refcount_meta_credits()
2545 struct buffer_head *ref_root_bh = NULL; in ocfs2_prepare_refcount_change_for_del() local
2567 &ref_root_bh); in ocfs2_prepare_refcount_change_for_del()
2575 ref_root_bh, in ocfs2_prepare_refcount_change_for_del()
2586 brelse(ref_root_bh); in ocfs2_prepare_refcount_change_for_del()
2861 struct buffer_head *ref_root_bh, in ocfs2_lock_refcount_allocators() argument
2881 ret = ocfs2_calc_refcount_meta_credits(sb, ref_ci, ref_root_bh, in ocfs2_lock_refcount_allocators()
3240 context->ref_root_bh, in ocfs2_make_clusters_writable()
3262 ret = ocfs2_get_refcount_rec(ref_ci, context->ref_root_bh, in ocfs2_make_clusters_writable()
3317 context->ref_root_bh, in ocfs2_make_clusters_writable()
3436 struct buffer_head *ref_root_bh = NULL; in ocfs2_refcount_cow_hunk() local
3464 1, &ref_tree, &ref_root_bh); in ocfs2_refcount_cow_hunk()
3474 context->ref_root_bh = ref_root_bh; in ocfs2_refcount_cow_hunk()
3493 brelse(ref_root_bh); in ocfs2_refcount_cow_hunk()
3558 struct buffer_head *ref_root_bh, in ocfs2_refcounted_xattr_delete_need() argument
3581 ret = ocfs2_get_refcount_rec(ref_ci, ref_root_bh, in ocfs2_refcounted_xattr_delete_need()
3621 rb = (struct ocfs2_refcount_block *)ref_root_bh->b_data; in ocfs2_refcounted_xattr_delete_need()
3627 ocfs2_init_refcount_extent_tree(&et, ref_ci, ref_root_bh); in ocfs2_refcounted_xattr_delete_need()
3644 struct buffer_head *ref_root_bh, in ocfs2_refcount_cow_xattr() argument
3677 context->ref_root_bh = ref_root_bh; in ocfs2_refcount_cow_xattr()
3706 struct buffer_head *ref_root_bh, in ocfs2_add_refcount_flag() argument
3718 ref_ci, ref_root_bh, in ocfs2_add_refcount_flag()
3755 ret = __ocfs2_increase_refcount(handle, ref_ci, ref_root_bh, in ocfs2_add_refcount_flag()
3815 struct buffer_head *ref_root_bh = NULL; in ocfs2_attach_refcount_tree() local
3839 &ref_tree, &ref_root_bh); in ocfs2_attach_refcount_tree()
3864 ref_root_bh, cpos, in ocfs2_attach_refcount_tree()
3881 ref_root_bh, in ocfs2_attach_refcount_tree()
3897 brelse(ref_root_bh); in ocfs2_attach_refcount_tree()
3916 struct buffer_head *ref_root_bh, in ocfs2_add_refcounted_extent() argument
3930 ref_root_bh, &meta_ac, in ocfs2_add_refcounted_extent()
3952 ret = ocfs2_increase_refcount(handle, ref_ci, ref_root_bh, in ocfs2_add_refcounted_extent()
4013 struct buffer_head *ref_root_bh, in ocfs2_duplicate_extent_list() argument
4037 ref_ci, ref_root_bh, in ocfs2_duplicate_extent_list()
4139 struct buffer_head *ref_root_bh = NULL; in ocfs2_create_reflink_node() local
4164 1, &ref_tree, &ref_root_bh); in ocfs2_create_reflink_node()
4169 rb = (struct ocfs2_refcount_block *)ref_root_bh->b_data; in ocfs2_create_reflink_node()
4172 &ref_tree->rf_ci, ref_root_bh, in ocfs2_create_reflink_node()
4181 brelse(ref_root_bh); in ocfs2_create_reflink_node()