Lines Matching refs:ref_root_bh

58 	struct buffer_head *ref_root_bh;  member
336 struct buffer_head *ref_root_bh = NULL; in ocfs2_get_refcount_tree() local
364 ret = ocfs2_read_refcount_block(&new->rf_ci, rf_blkno, &ref_root_bh); in ocfs2_get_refcount_tree()
372 ref_rb = (struct ocfs2_refcount_block *)ref_root_bh->b_data; in ocfs2_get_refcount_tree()
398 brelse(ref_root_bh); in ocfs2_get_refcount_tree()
458 struct buffer_head *ref_root_bh = NULL; in ocfs2_lock_refcount_tree() local
478 &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()
2302 struct buffer_head *ref_root_bh = NULL; in ocfs2_decrease_refcount() local
2320 &ref_root_bh); in ocfs2_decrease_refcount()
2326 ret = __ocfs2_decrease_refcount(handle, &tree->rf_ci, ref_root_bh, in ocfs2_decrease_refcount()
2331 brelse(ref_root_bh); in ocfs2_decrease_refcount()
2378 struct buffer_head *ref_root_bh, in ocfs2_calc_refcount_meta_credits() argument
2392 ret = ocfs2_get_refcount_rec(ci, ref_root_bh, in ocfs2_calc_refcount_meta_credits()
2492 rb = (struct ocfs2_refcount_block *)ref_root_bh->b_data; in ocfs2_calc_refcount_meta_credits()
2496 ocfs2_init_refcount_extent_tree(&et, ci, ref_root_bh); in ocfs2_calc_refcount_meta_credits()
2535 struct buffer_head *ref_root_bh = NULL; in ocfs2_prepare_refcount_change_for_del() local
2555 &ref_root_bh); in ocfs2_prepare_refcount_change_for_del()
2563 ref_root_bh, in ocfs2_prepare_refcount_change_for_del()
2574 brelse(ref_root_bh); in ocfs2_prepare_refcount_change_for_del()
2848 struct buffer_head *ref_root_bh, in ocfs2_lock_refcount_allocators() argument
2868 ret = ocfs2_calc_refcount_meta_credits(sb, ref_ci, ref_root_bh, in ocfs2_lock_refcount_allocators()
3230 context->ref_root_bh, in ocfs2_make_clusters_writable()
3252 ret = ocfs2_get_refcount_rec(ref_ci, context->ref_root_bh, in ocfs2_make_clusters_writable()
3307 context->ref_root_bh, in ocfs2_make_clusters_writable()
3423 struct buffer_head *ref_root_bh = NULL; in ocfs2_refcount_cow_hunk() local
3451 1, &ref_tree, &ref_root_bh); in ocfs2_refcount_cow_hunk()
3461 context->ref_root_bh = ref_root_bh; in ocfs2_refcount_cow_hunk()
3480 brelse(ref_root_bh); in ocfs2_refcount_cow_hunk()
3545 struct buffer_head *ref_root_bh, in ocfs2_refcounted_xattr_delete_need() argument
3568 ret = ocfs2_get_refcount_rec(ref_ci, ref_root_bh, in ocfs2_refcounted_xattr_delete_need()
3608 rb = (struct ocfs2_refcount_block *)ref_root_bh->b_data; in ocfs2_refcounted_xattr_delete_need()
3614 ocfs2_init_refcount_extent_tree(&et, ref_ci, ref_root_bh); in ocfs2_refcounted_xattr_delete_need()
3631 struct buffer_head *ref_root_bh, in ocfs2_refcount_cow_xattr() argument
3663 context->ref_root_bh = ref_root_bh; in ocfs2_refcount_cow_xattr()
3692 struct buffer_head *ref_root_bh, in ocfs2_add_refcount_flag() argument
3707 ref_ci, ref_root_bh, in ocfs2_add_refcount_flag()
3744 ret = __ocfs2_increase_refcount(handle, ref_ci, ref_root_bh, in ocfs2_add_refcount_flag()
3804 struct buffer_head *ref_root_bh = NULL; in ocfs2_attach_refcount_tree() local
3828 &ref_tree, &ref_root_bh); in ocfs2_attach_refcount_tree()
3853 ref_root_bh, cpos, in ocfs2_attach_refcount_tree()
3870 ref_root_bh, in ocfs2_attach_refcount_tree()
3886 brelse(ref_root_bh); in ocfs2_attach_refcount_tree()
3905 struct buffer_head *ref_root_bh, in ocfs2_add_refcounted_extent() argument
3919 ref_root_bh, &meta_ac, in ocfs2_add_refcounted_extent()
3941 ret = ocfs2_increase_refcount(handle, ref_ci, ref_root_bh, in ocfs2_add_refcounted_extent()
4009 struct buffer_head *ref_root_bh, in ocfs2_duplicate_extent_list() argument
4033 ref_ci, ref_root_bh, in ocfs2_duplicate_extent_list()
4135 struct buffer_head *ref_root_bh = NULL; in ocfs2_create_reflink_node() local
4160 1, &ref_tree, &ref_root_bh); in ocfs2_create_reflink_node()
4165 rb = (struct ocfs2_refcount_block *)ref_root_bh->b_data; in ocfs2_create_reflink_node()
4168 &ref_tree->rf_ci, ref_root_bh, in ocfs2_create_reflink_node()
4177 brelse(ref_root_bh); in ocfs2_create_reflink_node()
4522 struct buffer_head *ref_root_bh = NULL; in ocfs2_reflink_remap_extent() local
4570 1, &ref_tree, &ref_root_bh); in ocfs2_reflink_remap_extent()
4580 ref_root_bh, spos, in ocfs2_reflink_remap_extent()
4593 ref_root_bh, in ocfs2_reflink_remap_extent()
4604 brelse(ref_root_bh); in ocfs2_reflink_remap_extent()
4614 brelse(ref_root_bh); in ocfs2_reflink_remap_extent()