Lines Matching refs:ref_root_bh

49 	struct buffer_head *ref_root_bh;  member
329 struct buffer_head *ref_root_bh = NULL; in ocfs2_get_refcount_tree() local
357 ret = ocfs2_read_refcount_block(&new->rf_ci, rf_blkno, &ref_root_bh); in ocfs2_get_refcount_tree()
365 ref_rb = (struct ocfs2_refcount_block *)ref_root_bh->b_data; in ocfs2_get_refcount_tree()
391 brelse(ref_root_bh); in ocfs2_get_refcount_tree()
451 struct buffer_head *ref_root_bh = NULL; in ocfs2_lock_refcount_tree() local
471 &ref_root_bh); in ocfs2_lock_refcount_tree()
478 rb = (struct ocfs2_refcount_block *)ref_root_bh->b_data; in ocfs2_lock_refcount_tree()
502 brelse(ref_root_bh); in ocfs2_lock_refcount_tree()
503 ref_root_bh = NULL; in ocfs2_lock_refcount_tree()
509 *ref_bh = ref_root_bh; in ocfs2_lock_refcount_tree()
510 ref_root_bh = NULL; in ocfs2_lock_refcount_tree()
513 brelse(ref_root_bh); in ocfs2_lock_refcount_tree()
700 struct buffer_head *ref_root_bh = NULL; in ocfs2_set_refcount_tree() local
707 &ref_tree, &ref_root_bh); in ocfs2_set_refcount_tree()
727 ret = ocfs2_journal_access_rb(handle, &ref_tree->rf_ci, ref_root_bh, in ocfs2_set_refcount_tree()
734 rb = (struct ocfs2_refcount_block *)ref_root_bh->b_data; in ocfs2_set_refcount_tree()
737 ocfs2_journal_dirty(handle, ref_root_bh); in ocfs2_set_refcount_tree()
750 brelse(ref_root_bh); in ocfs2_set_refcount_tree()
958 struct buffer_head *ref_root_bh, in ocfs2_get_refcount_cpos_end() argument
995 ocfs2_init_refcount_extent_tree(&et, ci, ref_root_bh); in ocfs2_get_refcount_cpos_end()
1058 struct buffer_head *ref_root_bh, in ocfs2_get_refcount_rec() argument
1072 (struct ocfs2_refcount_block *)ref_root_bh->b_data; in ocfs2_get_refcount_rec()
1075 ocfs2_find_refcount_rec_in_rl(ci, ref_root_bh, cpos, len, in ocfs2_get_refcount_rec()
1077 *ret_bh = ref_root_bh; in ocfs2_get_refcount_rec()
1078 get_bh(ref_root_bh); in ocfs2_get_refcount_rec()
1115 ret = ocfs2_get_refcount_cpos_end(ci, ref_root_bh, in ocfs2_get_refcount_rec()
1277 struct buffer_head *ref_root_bh, in ocfs2_expand_inline_ref_root() argument
1289 (struct ocfs2_refcount_block *)ref_root_bh->b_data; in ocfs2_expand_inline_ref_root()
1291 ret = ocfs2_journal_access_rb(handle, ci, ref_root_bh, in ocfs2_expand_inline_ref_root()
1326 memcpy(new_bh->b_data, ref_root_bh->b_data, sb->s_blocksize); in ocfs2_expand_inline_ref_root()
1334 new_rb->rf_parent = cpu_to_le64(ref_root_bh->b_blocknr); in ocfs2_expand_inline_ref_root()
1348 ocfs2_journal_dirty(handle, ref_root_bh); in ocfs2_expand_inline_ref_root()
1508 struct buffer_head *ref_root_bh, in ocfs2_new_leaf_refcount_block() argument
1518 (struct ocfs2_refcount_block *)ref_root_bh->b_data; in ocfs2_new_leaf_refcount_block()
1525 ret = ocfs2_journal_access_rb(handle, ci, ref_root_bh, in ocfs2_new_leaf_refcount_block()
1571 new_rb->rf_parent = cpu_to_le64(ref_root_bh->b_blocknr); in ocfs2_new_leaf_refcount_block()
1586 ocfs2_init_refcount_extent_tree(&ref_et, ci, ref_root_bh); in ocfs2_new_leaf_refcount_block()
1604 struct buffer_head *ref_root_bh, in ocfs2_expand_refcount_tree() argument
1611 if (ref_root_bh == ref_leaf_bh) { in ocfs2_expand_refcount_tree()
1616 ret = ocfs2_expand_inline_ref_root(handle, ci, ref_root_bh, in ocfs2_expand_refcount_tree()
1629 ret = ocfs2_new_leaf_refcount_block(handle, ci, ref_root_bh, in ocfs2_expand_refcount_tree()
1646 struct buffer_head *ref_root_bh, in ocfs2_adjust_refcount_rec() argument
1655 (struct ocfs2_refcount_block *)ref_root_bh->b_data; in ocfs2_adjust_refcount_rec()
1667 ocfs2_init_refcount_extent_tree(&et, ci, ref_root_bh); in ocfs2_adjust_refcount_rec()
1730 struct buffer_head *ref_root_bh, in ocfs2_insert_refcount_rec() argument
1748 ret = ocfs2_expand_refcount_tree(handle, ci, ref_root_bh, in ocfs2_insert_refcount_rec()
1755 ret = ocfs2_get_refcount_rec(ci, ref_root_bh, in ocfs2_insert_refcount_rec()
1797 ref_root_bh, in ocfs2_insert_refcount_rec()
1818 struct buffer_head *ref_root_bh, in ocfs2_split_refcount_rec() argument
1874 ret = ocfs2_expand_refcount_tree(handle, ci, ref_root_bh, in ocfs2_split_refcount_rec()
1885 ret = ocfs2_get_refcount_rec(ci, ref_root_bh, in ocfs2_split_refcount_rec()
1974 struct buffer_head *ref_root_bh, in __ocfs2_increase_refcount() argument
1989 ret = ocfs2_get_refcount_rec(ci, ref_root_bh, in __ocfs2_increase_refcount()
2027 ret = ocfs2_insert_refcount_rec(handle, ci, ref_root_bh, in __ocfs2_increase_refcount()
2046 ref_root_bh, ref_leaf_bh, in __ocfs2_increase_refcount()
2068 struct buffer_head *ref_root_bh, in ocfs2_remove_refcount_extent() argument
2086 ocfs2_init_refcount_extent_tree(&et, ci, ref_root_bh); in ocfs2_remove_refcount_extent()
2110 ret = ocfs2_journal_access_rb(handle, ci, ref_root_bh, in ocfs2_remove_refcount_extent()
2117 rb = (struct ocfs2_refcount_block *)ref_root_bh->b_data; in ocfs2_remove_refcount_extent()
2129 (unsigned long long)ref_root_bh->b_blocknr); in ocfs2_remove_refcount_extent()
2140 ocfs2_journal_dirty(handle, ref_root_bh); in ocfs2_remove_refcount_extent()
2148 struct buffer_head *ref_root_bh, in ocfs2_increase_refcount() argument
2153 return __ocfs2_increase_refcount(handle, ci, ref_root_bh, in ocfs2_increase_refcount()
2160 struct buffer_head *ref_root_bh, in ocfs2_decrease_refcount_rec() argument
2191 ref_root_bh, ref_leaf_bh, in ocfs2_decrease_refcount_rec()
2202 if (!rb->rf_records.rl_used && ref_leaf_bh != ref_root_bh) { in ocfs2_decrease_refcount_rec()
2203 ret = ocfs2_remove_refcount_extent(handle, ci, ref_root_bh, in ocfs2_decrease_refcount_rec()
2216 struct buffer_head *ref_root_bh, in __ocfs2_decrease_refcount() argument
2233 ret = ocfs2_get_refcount_rec(ci, ref_root_bh, in __ocfs2_decrease_refcount()
2249 ret = ocfs2_decrease_refcount_rec(handle, ci, ref_root_bh, in __ocfs2_decrease_refcount()
2288 struct buffer_head *ref_root_bh = NULL; in ocfs2_decrease_refcount() local
2306 &ref_root_bh); in ocfs2_decrease_refcount()
2312 ret = __ocfs2_decrease_refcount(handle, &tree->rf_ci, ref_root_bh, in ocfs2_decrease_refcount()
2317 brelse(ref_root_bh); in ocfs2_decrease_refcount()
2364 struct buffer_head *ref_root_bh, in ocfs2_calc_refcount_meta_credits() argument
2378 ret = ocfs2_get_refcount_rec(ci, ref_root_bh, in ocfs2_calc_refcount_meta_credits()
2478 rb = (struct ocfs2_refcount_block *)ref_root_bh->b_data; in ocfs2_calc_refcount_meta_credits()
2482 ocfs2_init_refcount_extent_tree(&et, ci, ref_root_bh); in ocfs2_calc_refcount_meta_credits()
2521 struct buffer_head *ref_root_bh = NULL; in ocfs2_prepare_refcount_change_for_del() local
2541 &ref_root_bh); in ocfs2_prepare_refcount_change_for_del()
2549 ref_root_bh, in ocfs2_prepare_refcount_change_for_del()
2560 brelse(ref_root_bh); in ocfs2_prepare_refcount_change_for_del()
2834 struct buffer_head *ref_root_bh, in ocfs2_lock_refcount_allocators() argument
2854 ret = ocfs2_calc_refcount_meta_credits(sb, ref_ci, ref_root_bh, in ocfs2_lock_refcount_allocators()
3189 context->ref_root_bh, in ocfs2_make_clusters_writable()
3211 ret = ocfs2_get_refcount_rec(ref_ci, context->ref_root_bh, in ocfs2_make_clusters_writable()
3266 context->ref_root_bh, in ocfs2_make_clusters_writable()
3382 struct buffer_head *ref_root_bh = NULL; in ocfs2_refcount_cow_hunk() local
3410 1, &ref_tree, &ref_root_bh); in ocfs2_refcount_cow_hunk()
3420 context->ref_root_bh = ref_root_bh; in ocfs2_refcount_cow_hunk()
3439 brelse(ref_root_bh); in ocfs2_refcount_cow_hunk()
3504 struct buffer_head *ref_root_bh, in ocfs2_refcounted_xattr_delete_need() argument
3527 ret = ocfs2_get_refcount_rec(ref_ci, ref_root_bh, in ocfs2_refcounted_xattr_delete_need()
3567 rb = (struct ocfs2_refcount_block *)ref_root_bh->b_data; in ocfs2_refcounted_xattr_delete_need()
3573 ocfs2_init_refcount_extent_tree(&et, ref_ci, ref_root_bh); in ocfs2_refcounted_xattr_delete_need()
3590 struct buffer_head *ref_root_bh, in ocfs2_refcount_cow_xattr() argument
3622 context->ref_root_bh = ref_root_bh; in ocfs2_refcount_cow_xattr()
3651 struct buffer_head *ref_root_bh, in ocfs2_add_refcount_flag() argument
3666 ref_ci, ref_root_bh, in ocfs2_add_refcount_flag()
3703 ret = __ocfs2_increase_refcount(handle, ref_ci, ref_root_bh, in ocfs2_add_refcount_flag()
3763 struct buffer_head *ref_root_bh = NULL; in ocfs2_attach_refcount_tree() local
3787 &ref_tree, &ref_root_bh); in ocfs2_attach_refcount_tree()
3812 ref_root_bh, cpos, in ocfs2_attach_refcount_tree()
3829 ref_root_bh, in ocfs2_attach_refcount_tree()
3845 brelse(ref_root_bh); in ocfs2_attach_refcount_tree()
3864 struct buffer_head *ref_root_bh, in ocfs2_add_refcounted_extent() argument
3878 ref_root_bh, &meta_ac, in ocfs2_add_refcounted_extent()
3900 ret = ocfs2_increase_refcount(handle, ref_ci, ref_root_bh, in ocfs2_add_refcounted_extent()
3968 struct buffer_head *ref_root_bh, in ocfs2_duplicate_extent_list() argument
3992 ref_ci, ref_root_bh, in ocfs2_duplicate_extent_list()
4094 struct buffer_head *ref_root_bh = NULL; in ocfs2_create_reflink_node() local
4118 1, &ref_tree, &ref_root_bh); in ocfs2_create_reflink_node()
4125 &ref_tree->rf_ci, ref_root_bh, in ocfs2_create_reflink_node()
4134 brelse(ref_root_bh); in ocfs2_create_reflink_node()
4500 struct buffer_head *ref_root_bh = NULL; in ocfs2_reflink_remap_extent() local
4549 1, &ref_tree, &ref_root_bh); in ocfs2_reflink_remap_extent()
4559 ref_root_bh, spos, in ocfs2_reflink_remap_extent()
4572 ref_root_bh, in ocfs2_reflink_remap_extent()
4583 brelse(ref_root_bh); in ocfs2_reflink_remap_extent()
4593 brelse(ref_root_bh); in ocfs2_reflink_remap_extent()