Lines Matching refs:ref_leaf_bh
877 struct buffer_head *ref_leaf_bh, in ocfs2_find_refcount_rec_in_rl() argument
884 (struct ocfs2_refcount_block *)ref_leaf_bh->b_data; in ocfs2_find_refcount_rec_in_rl()
1070 struct buffer_head *eb_bh = NULL, *ref_leaf_bh = NULL; in ocfs2_get_refcount_rec() local
1128 &ref_leaf_bh); in ocfs2_get_refcount_rec()
1134 ocfs2_find_refcount_rec_in_rl(ci, ref_leaf_bh, cpos, len, in ocfs2_get_refcount_rec()
1136 *ret_bh = ref_leaf_bh; in ocfs2_get_refcount_rec()
1237 struct buffer_head *ref_leaf_bh, in ocfs2_change_refcount_rec() argument
1242 (struct ocfs2_refcount_block *)ref_leaf_bh->b_data; in ocfs2_change_refcount_rec()
1246 ret = ocfs2_journal_access_rb(handle, ci, ref_leaf_bh, in ocfs2_change_refcount_rec()
1271 ocfs2_journal_dirty(handle, ref_leaf_bh); in ocfs2_change_refcount_rec()
1279 struct buffer_head **ref_leaf_bh, in ocfs2_expand_inline_ref_root() argument
1354 *ref_leaf_bh = new_bh; in ocfs2_expand_inline_ref_root()
1441 static int ocfs2_divide_leaf_refcount_block(struct buffer_head *ref_leaf_bh, in ocfs2_divide_leaf_refcount_block() argument
1448 (struct ocfs2_refcount_block *)ref_leaf_bh->b_data; in ocfs2_divide_leaf_refcount_block()
1455 (unsigned long long)ref_leaf_bh->b_blocknr, in ocfs2_divide_leaf_refcount_block()
1510 struct buffer_head *ref_leaf_bh, in ocfs2_new_leaf_refcount_block() argument
1533 ret = ocfs2_journal_access_rb(handle, ci, ref_leaf_bh, in ocfs2_new_leaf_refcount_block()
1578 ret = ocfs2_divide_leaf_refcount_block(ref_leaf_bh, new_bh, &new_cpos); in ocfs2_new_leaf_refcount_block()
1584 ocfs2_journal_dirty(handle, ref_leaf_bh); in ocfs2_new_leaf_refcount_block()
1606 struct buffer_head *ref_leaf_bh, in ocfs2_expand_refcount_tree() argument
1612 if (ref_root_bh == ref_leaf_bh) { in ocfs2_expand_refcount_tree()
1624 expand_bh = ref_leaf_bh; in ocfs2_expand_refcount_tree()
1648 struct buffer_head *ref_leaf_bh, in ocfs2_adjust_refcount_rec() argument
1662 rb = (struct ocfs2_refcount_block *)ref_leaf_bh->b_data; in ocfs2_adjust_refcount_rec()
1693 ret = ocfs2_journal_access_rb(handle, ci, ref_leaf_bh, in ocfs2_adjust_refcount_rec()
1722 ocfs2_journal_dirty(handle, ref_leaf_bh); in ocfs2_adjust_refcount_rec()
1732 struct buffer_head *ref_leaf_bh, in ocfs2_insert_refcount_rec() argument
1739 (struct ocfs2_refcount_block *)ref_leaf_bh->b_data; in ocfs2_insert_refcount_rec()
1750 ref_leaf_bh, meta_ac); in ocfs2_insert_refcount_rec()
1764 ref_leaf_bh = new_bh; in ocfs2_insert_refcount_rec()
1765 rb = (struct ocfs2_refcount_block *)ref_leaf_bh->b_data; in ocfs2_insert_refcount_rec()
1769 ret = ocfs2_journal_access_rb(handle, ci, ref_leaf_bh, in ocfs2_insert_refcount_rec()
1783 (unsigned long long)ref_leaf_bh->b_blocknr, index, in ocfs2_insert_refcount_rec()
1794 ocfs2_journal_dirty(handle, ref_leaf_bh); in ocfs2_insert_refcount_rec()
1799 ref_leaf_bh, rec); in ocfs2_insert_refcount_rec()
1820 struct buffer_head *ref_leaf_bh, in ocfs2_split_refcount_rec() argument
1829 (struct ocfs2_refcount_block *)ref_leaf_bh->b_data; in ocfs2_split_refcount_rec()
1876 ref_leaf_bh, meta_ac); in ocfs2_split_refcount_rec()
1894 ref_leaf_bh = new_bh; in ocfs2_split_refcount_rec()
1895 rb = (struct ocfs2_refcount_block *)ref_leaf_bh->b_data; in ocfs2_split_refcount_rec()
1900 ret = ocfs2_journal_access_rb(handle, ci, ref_leaf_bh, in ocfs2_split_refcount_rec()
1957 (unsigned long long)ref_leaf_bh->b_blocknr, index, in ocfs2_split_refcount_rec()
1966 ocfs2_journal_dirty(handle, ref_leaf_bh); in ocfs2_split_refcount_rec()
1981 struct buffer_head *ref_leaf_bh = NULL; in __ocfs2_increase_refcount() local
1992 &ref_leaf_bh); in __ocfs2_increase_refcount()
2016 ref_leaf_bh, index, in __ocfs2_increase_refcount()
2029 ref_leaf_bh, in __ocfs2_increase_refcount()
2047 ref_root_bh, ref_leaf_bh, in __ocfs2_increase_refcount()
2058 brelse(ref_leaf_bh); in __ocfs2_increase_refcount()
2059 ref_leaf_bh = NULL; in __ocfs2_increase_refcount()
2063 brelse(ref_leaf_bh); in __ocfs2_increase_refcount()
2070 struct buffer_head *ref_leaf_bh, in ocfs2_remove_refcount_extent() argument
2077 (struct ocfs2_refcount_block *)ref_leaf_bh->b_data; in ocfs2_remove_refcount_extent()
2084 (unsigned long long)ref_leaf_bh->b_blocknr, in ocfs2_remove_refcount_extent()
2095 ocfs2_remove_from_cache(ci, ref_leaf_bh); in ocfs2_remove_refcount_extent()
2162 struct buffer_head *ref_leaf_bh, in ocfs2_decrease_refcount_rec() argument
2169 (struct ocfs2_refcount_block *)ref_leaf_bh->b_data; in ocfs2_decrease_refcount_rec()
2183 ref_leaf_bh, index, 1, -1); in ocfs2_decrease_refcount_rec()
2192 ref_root_bh, ref_leaf_bh, in ocfs2_decrease_refcount_rec()
2203 if (!rb->rf_records.rl_used && ref_leaf_bh != ref_root_bh) { in ocfs2_decrease_refcount_rec()
2205 ref_leaf_bh, meta_ac, in ocfs2_decrease_refcount_rec()
2227 struct buffer_head *ref_leaf_bh = NULL; in __ocfs2_decrease_refcount() local
2236 &ref_leaf_bh); in __ocfs2_decrease_refcount()
2251 ref_leaf_bh, index, in __ocfs2_decrease_refcount()
2271 brelse(ref_leaf_bh); in __ocfs2_decrease_refcount()
2272 ref_leaf_bh = NULL; in __ocfs2_decrease_refcount()
2276 brelse(ref_leaf_bh); in __ocfs2_decrease_refcount()
2375 struct buffer_head *ref_leaf_bh = NULL, *prev_bh = NULL; in ocfs2_calc_refcount_meta_credits() local
2381 &index, &ref_leaf_bh); in ocfs2_calc_refcount_meta_credits()
2387 if (ref_leaf_bh != prev_bh) { in ocfs2_calc_refcount_meta_credits()
2405 prev_bh = ref_leaf_bh; in ocfs2_calc_refcount_meta_credits()
2450 brelse(ref_leaf_bh); in ocfs2_calc_refcount_meta_credits()
2451 ref_leaf_bh = NULL; in ocfs2_calc_refcount_meta_credits()
2497 brelse(ref_leaf_bh); in ocfs2_calc_refcount_meta_credits()
3177 struct buffer_head *ref_leaf_bh = NULL; in ocfs2_make_clusters_writable() local
3211 &rec, &index, &ref_leaf_bh); in ocfs2_make_clusters_writable()
3276 brelse(ref_leaf_bh); in ocfs2_make_clusters_writable()
3277 ref_leaf_bh = NULL; in ocfs2_make_clusters_writable()
3313 brelse(ref_leaf_bh); in ocfs2_make_clusters_writable()
3511 struct buffer_head *ref_leaf_bh = NULL; in ocfs2_refcounted_xattr_delete_need() local
3528 &ref_leaf_bh); in ocfs2_refcounted_xattr_delete_need()
3536 rb = (struct ocfs2_refcount_block *)ref_leaf_bh->b_data; in ocfs2_refcounted_xattr_delete_need()
3550 brelse(ref_leaf_bh); in ocfs2_refcounted_xattr_delete_need()
3551 ref_leaf_bh = NULL; in ocfs2_refcounted_xattr_delete_need()
3577 brelse(ref_leaf_bh); in ocfs2_refcounted_xattr_delete_need()