Lines Matching refs:ref_root_bh

57 	struct buffer_head *ref_root_bh;  member
335 struct buffer_head *ref_root_bh = NULL; in ocfs2_get_refcount_tree() local
363 ret = ocfs2_read_refcount_block(&new->rf_ci, rf_blkno, &ref_root_bh); in ocfs2_get_refcount_tree()
371 ref_rb = (struct ocfs2_refcount_block *)ref_root_bh->b_data; in ocfs2_get_refcount_tree()
397 brelse(ref_root_bh); in ocfs2_get_refcount_tree()
457 struct buffer_head *ref_root_bh = NULL; in ocfs2_lock_refcount_tree() local
477 &ref_root_bh); in ocfs2_lock_refcount_tree()
485 rb = (struct ocfs2_refcount_block *)ref_root_bh->b_data; in ocfs2_lock_refcount_tree()
509 brelse(ref_root_bh); in ocfs2_lock_refcount_tree()
510 ref_root_bh = NULL; in ocfs2_lock_refcount_tree()
516 *ref_bh = ref_root_bh; in ocfs2_lock_refcount_tree()
517 ref_root_bh = NULL; in ocfs2_lock_refcount_tree()
520 brelse(ref_root_bh); in ocfs2_lock_refcount_tree()
707 struct buffer_head *ref_root_bh = NULL; in ocfs2_set_refcount_tree() local
714 &ref_tree, &ref_root_bh); in ocfs2_set_refcount_tree()
734 ret = ocfs2_journal_access_rb(handle, &ref_tree->rf_ci, ref_root_bh, in ocfs2_set_refcount_tree()
741 rb = (struct ocfs2_refcount_block *)ref_root_bh->b_data; in ocfs2_set_refcount_tree()
744 ocfs2_journal_dirty(handle, ref_root_bh); in ocfs2_set_refcount_tree()
757 brelse(ref_root_bh); in ocfs2_set_refcount_tree()
965 struct buffer_head *ref_root_bh, in ocfs2_get_refcount_cpos_end() argument
1002 ocfs2_init_refcount_extent_tree(&et, ci, ref_root_bh); in ocfs2_get_refcount_cpos_end()
1065 struct buffer_head *ref_root_bh, in ocfs2_get_refcount_rec() argument
1079 (struct ocfs2_refcount_block *)ref_root_bh->b_data; in ocfs2_get_refcount_rec()
1082 ocfs2_find_refcount_rec_in_rl(ci, ref_root_bh, cpos, len, in ocfs2_get_refcount_rec()
1084 *ret_bh = ref_root_bh; in ocfs2_get_refcount_rec()
1085 get_bh(ref_root_bh); in ocfs2_get_refcount_rec()
1122 ret = ocfs2_get_refcount_cpos_end(ci, ref_root_bh, in ocfs2_get_refcount_rec()
1284 struct buffer_head *ref_root_bh, in ocfs2_expand_inline_ref_root() argument
1296 (struct ocfs2_refcount_block *)ref_root_bh->b_data; in ocfs2_expand_inline_ref_root()
1298 ret = ocfs2_journal_access_rb(handle, ci, ref_root_bh, in ocfs2_expand_inline_ref_root()
1333 memcpy(new_bh->b_data, ref_root_bh->b_data, sb->s_blocksize); in ocfs2_expand_inline_ref_root()
1341 new_rb->rf_parent = cpu_to_le64(ref_root_bh->b_blocknr); in ocfs2_expand_inline_ref_root()
1355 ocfs2_journal_dirty(handle, ref_root_bh); in ocfs2_expand_inline_ref_root()
1522 struct buffer_head *ref_root_bh, in ocfs2_new_leaf_refcount_block() argument
1532 (struct ocfs2_refcount_block *)ref_root_bh->b_data; in ocfs2_new_leaf_refcount_block()
1539 ret = ocfs2_journal_access_rb(handle, ci, ref_root_bh, in ocfs2_new_leaf_refcount_block()
1585 new_rb->rf_parent = cpu_to_le64(ref_root_bh->b_blocknr); in ocfs2_new_leaf_refcount_block()
1600 ocfs2_init_refcount_extent_tree(&ref_et, ci, ref_root_bh); in ocfs2_new_leaf_refcount_block()
1618 struct buffer_head *ref_root_bh, in ocfs2_expand_refcount_tree() argument
1625 if (ref_root_bh == ref_leaf_bh) { in ocfs2_expand_refcount_tree()
1630 ret = ocfs2_expand_inline_ref_root(handle, ci, ref_root_bh, in ocfs2_expand_refcount_tree()
1643 ret = ocfs2_new_leaf_refcount_block(handle, ci, ref_root_bh, in ocfs2_expand_refcount_tree()
1660 struct buffer_head *ref_root_bh, in ocfs2_adjust_refcount_rec() argument
1669 (struct ocfs2_refcount_block *)ref_root_bh->b_data; in ocfs2_adjust_refcount_rec()
1681 ocfs2_init_refcount_extent_tree(&et, ci, ref_root_bh); in ocfs2_adjust_refcount_rec()
1744 struct buffer_head *ref_root_bh, in ocfs2_insert_refcount_rec() argument
1762 ret = ocfs2_expand_refcount_tree(handle, ci, ref_root_bh, in ocfs2_insert_refcount_rec()
1769 ret = ocfs2_get_refcount_rec(ci, ref_root_bh, in ocfs2_insert_refcount_rec()
1811 ref_root_bh, in ocfs2_insert_refcount_rec()
1832 struct buffer_head *ref_root_bh, in ocfs2_split_refcount_rec() argument
1888 ret = ocfs2_expand_refcount_tree(handle, ci, ref_root_bh, in ocfs2_split_refcount_rec()
1899 ret = ocfs2_get_refcount_rec(ci, ref_root_bh, in ocfs2_split_refcount_rec()
1988 struct buffer_head *ref_root_bh, in __ocfs2_increase_refcount() argument
2003 ret = ocfs2_get_refcount_rec(ci, ref_root_bh, in __ocfs2_increase_refcount()
2041 ret = ocfs2_insert_refcount_rec(handle, ci, ref_root_bh, in __ocfs2_increase_refcount()
2060 ref_root_bh, ref_leaf_bh, in __ocfs2_increase_refcount()
2082 struct buffer_head *ref_root_bh, in ocfs2_remove_refcount_extent() argument
2100 ocfs2_init_refcount_extent_tree(&et, ci, ref_root_bh); in ocfs2_remove_refcount_extent()
2124 ret = ocfs2_journal_access_rb(handle, ci, ref_root_bh, in ocfs2_remove_refcount_extent()
2131 rb = (struct ocfs2_refcount_block *)ref_root_bh->b_data; in ocfs2_remove_refcount_extent()
2143 (unsigned long long)ref_root_bh->b_blocknr); in ocfs2_remove_refcount_extent()
2154 ocfs2_journal_dirty(handle, ref_root_bh); in ocfs2_remove_refcount_extent()
2162 struct buffer_head *ref_root_bh, in ocfs2_increase_refcount() argument
2167 return __ocfs2_increase_refcount(handle, ci, ref_root_bh, in ocfs2_increase_refcount()
2174 struct buffer_head *ref_root_bh, in ocfs2_decrease_refcount_rec() argument
2205 ref_root_bh, ref_leaf_bh, in ocfs2_decrease_refcount_rec()
2216 if (!rb->rf_records.rl_used && ref_leaf_bh != ref_root_bh) { in ocfs2_decrease_refcount_rec()
2217 ret = ocfs2_remove_refcount_extent(handle, ci, ref_root_bh, in ocfs2_decrease_refcount_rec()
2230 struct buffer_head *ref_root_bh, in __ocfs2_decrease_refcount() argument
2247 ret = ocfs2_get_refcount_rec(ci, ref_root_bh, in __ocfs2_decrease_refcount()
2263 ret = ocfs2_decrease_refcount_rec(handle, ci, ref_root_bh, in __ocfs2_decrease_refcount()
2303 struct buffer_head *ref_root_bh = NULL; in ocfs2_decrease_refcount() local
2321 &ref_root_bh); in ocfs2_decrease_refcount()
2327 ret = __ocfs2_decrease_refcount(handle, &tree->rf_ci, ref_root_bh, in ocfs2_decrease_refcount()
2332 brelse(ref_root_bh); in ocfs2_decrease_refcount()
2379 struct buffer_head *ref_root_bh, in ocfs2_calc_refcount_meta_credits() argument
2393 ret = ocfs2_get_refcount_rec(ci, ref_root_bh, in ocfs2_calc_refcount_meta_credits()
2493 rb = (struct ocfs2_refcount_block *)ref_root_bh->b_data; in ocfs2_calc_refcount_meta_credits()
2497 ocfs2_init_refcount_extent_tree(&et, ci, ref_root_bh); in ocfs2_calc_refcount_meta_credits()
2537 struct buffer_head *ref_root_bh = NULL; in ocfs2_prepare_refcount_change_for_del() local
2557 &ref_root_bh); in ocfs2_prepare_refcount_change_for_del()
2565 ref_root_bh, in ocfs2_prepare_refcount_change_for_del()
2576 brelse(ref_root_bh); in ocfs2_prepare_refcount_change_for_del()
2850 struct buffer_head *ref_root_bh, in ocfs2_lock_refcount_allocators() argument
2870 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()
3418 struct buffer_head *ref_root_bh = NULL; in ocfs2_refcount_cow_hunk() local
3446 1, &ref_tree, &ref_root_bh); in ocfs2_refcount_cow_hunk()
3456 context->ref_root_bh = ref_root_bh; in ocfs2_refcount_cow_hunk()
3475 brelse(ref_root_bh); in ocfs2_refcount_cow_hunk()
3540 struct buffer_head *ref_root_bh, in ocfs2_refcounted_xattr_delete_need() argument
3563 ret = ocfs2_get_refcount_rec(ref_ci, ref_root_bh, in ocfs2_refcounted_xattr_delete_need()
3603 rb = (struct ocfs2_refcount_block *)ref_root_bh->b_data; in ocfs2_refcounted_xattr_delete_need()
3609 ocfs2_init_refcount_extent_tree(&et, ref_ci, ref_root_bh); in ocfs2_refcounted_xattr_delete_need()
3626 struct buffer_head *ref_root_bh, in ocfs2_refcount_cow_xattr() argument
3659 context->ref_root_bh = ref_root_bh; in ocfs2_refcount_cow_xattr()
3688 struct buffer_head *ref_root_bh, in ocfs2_add_refcount_flag() argument
3700 ref_ci, ref_root_bh, in ocfs2_add_refcount_flag()
3737 ret = __ocfs2_increase_refcount(handle, ref_ci, ref_root_bh, in ocfs2_add_refcount_flag()
3797 struct buffer_head *ref_root_bh = NULL; in ocfs2_attach_refcount_tree() local
3821 &ref_tree, &ref_root_bh); in ocfs2_attach_refcount_tree()
3846 ref_root_bh, cpos, in ocfs2_attach_refcount_tree()
3863 ref_root_bh, in ocfs2_attach_refcount_tree()
3879 brelse(ref_root_bh); in ocfs2_attach_refcount_tree()
3898 struct buffer_head *ref_root_bh, in ocfs2_add_refcounted_extent() argument
3912 ref_root_bh, &meta_ac, in ocfs2_add_refcounted_extent()
3934 ret = ocfs2_increase_refcount(handle, ref_ci, ref_root_bh, in ocfs2_add_refcounted_extent()
3995 struct buffer_head *ref_root_bh, in ocfs2_duplicate_extent_list() argument
4019 ref_ci, ref_root_bh, in ocfs2_duplicate_extent_list()
4121 struct buffer_head *ref_root_bh = NULL; in ocfs2_create_reflink_node() local
4146 1, &ref_tree, &ref_root_bh); in ocfs2_create_reflink_node()
4151 rb = (struct ocfs2_refcount_block *)ref_root_bh->b_data; in ocfs2_create_reflink_node()
4154 &ref_tree->rf_ci, ref_root_bh, in ocfs2_create_reflink_node()
4163 brelse(ref_root_bh); in ocfs2_create_reflink_node()