Lines Matching refs:ref_leaf_bh
883 struct buffer_head *ref_leaf_bh, in ocfs2_find_refcount_rec_in_rl() argument
890 (struct ocfs2_refcount_block *)ref_leaf_bh->b_data; in ocfs2_find_refcount_rec_in_rl()
1076 struct buffer_head *eb_bh = NULL, *ref_leaf_bh = NULL; in ocfs2_get_refcount_rec() local
1134 &ref_leaf_bh); in ocfs2_get_refcount_rec()
1140 ocfs2_find_refcount_rec_in_rl(ci, ref_leaf_bh, cpos, len, in ocfs2_get_refcount_rec()
1142 *ret_bh = ref_leaf_bh; in ocfs2_get_refcount_rec()
1243 struct buffer_head *ref_leaf_bh, in ocfs2_change_refcount_rec() argument
1248 (struct ocfs2_refcount_block *)ref_leaf_bh->b_data; in ocfs2_change_refcount_rec()
1252 ret = ocfs2_journal_access_rb(handle, ci, ref_leaf_bh, in ocfs2_change_refcount_rec()
1277 ocfs2_journal_dirty(handle, ref_leaf_bh); in ocfs2_change_refcount_rec()
1285 struct buffer_head **ref_leaf_bh, in ocfs2_expand_inline_ref_root() argument
1360 *ref_leaf_bh = new_bh; in ocfs2_expand_inline_ref_root()
1454 static int ocfs2_divide_leaf_refcount_block(struct buffer_head *ref_leaf_bh, in ocfs2_divide_leaf_refcount_block() argument
1461 (struct ocfs2_refcount_block *)ref_leaf_bh->b_data; in ocfs2_divide_leaf_refcount_block()
1468 (unsigned long long)ref_leaf_bh->b_blocknr, in ocfs2_divide_leaf_refcount_block()
1523 struct buffer_head *ref_leaf_bh, in ocfs2_new_leaf_refcount_block() argument
1546 ret = ocfs2_journal_access_rb(handle, ci, ref_leaf_bh, in ocfs2_new_leaf_refcount_block()
1591 ret = ocfs2_divide_leaf_refcount_block(ref_leaf_bh, new_bh, &new_cpos); in ocfs2_new_leaf_refcount_block()
1597 ocfs2_journal_dirty(handle, ref_leaf_bh); in ocfs2_new_leaf_refcount_block()
1619 struct buffer_head *ref_leaf_bh, in ocfs2_expand_refcount_tree() argument
1625 if (ref_root_bh == ref_leaf_bh) { in ocfs2_expand_refcount_tree()
1637 expand_bh = ref_leaf_bh; in ocfs2_expand_refcount_tree()
1661 struct buffer_head *ref_leaf_bh, in ocfs2_adjust_refcount_rec() argument
1675 rb = (struct ocfs2_refcount_block *)ref_leaf_bh->b_data; in ocfs2_adjust_refcount_rec()
1706 ret = ocfs2_journal_access_rb(handle, ci, ref_leaf_bh, in ocfs2_adjust_refcount_rec()
1735 ocfs2_journal_dirty(handle, ref_leaf_bh); in ocfs2_adjust_refcount_rec()
1745 struct buffer_head *ref_leaf_bh, in ocfs2_insert_refcount_rec() argument
1752 (struct ocfs2_refcount_block *)ref_leaf_bh->b_data; in ocfs2_insert_refcount_rec()
1763 ref_leaf_bh, meta_ac); in ocfs2_insert_refcount_rec()
1777 ref_leaf_bh = new_bh; in ocfs2_insert_refcount_rec()
1778 rb = (struct ocfs2_refcount_block *)ref_leaf_bh->b_data; in ocfs2_insert_refcount_rec()
1782 ret = ocfs2_journal_access_rb(handle, ci, ref_leaf_bh, in ocfs2_insert_refcount_rec()
1796 (unsigned long long)ref_leaf_bh->b_blocknr, index, in ocfs2_insert_refcount_rec()
1807 ocfs2_journal_dirty(handle, ref_leaf_bh); in ocfs2_insert_refcount_rec()
1812 ref_leaf_bh, rec); in ocfs2_insert_refcount_rec()
1833 struct buffer_head *ref_leaf_bh, in ocfs2_split_refcount_rec() argument
1842 (struct ocfs2_refcount_block *)ref_leaf_bh->b_data; in ocfs2_split_refcount_rec()
1889 ref_leaf_bh, meta_ac); in ocfs2_split_refcount_rec()
1907 ref_leaf_bh = new_bh; in ocfs2_split_refcount_rec()
1908 rb = (struct ocfs2_refcount_block *)ref_leaf_bh->b_data; in ocfs2_split_refcount_rec()
1913 ret = ocfs2_journal_access_rb(handle, ci, ref_leaf_bh, in ocfs2_split_refcount_rec()
1970 (unsigned long long)ref_leaf_bh->b_blocknr, index, in ocfs2_split_refcount_rec()
1979 ocfs2_journal_dirty(handle, ref_leaf_bh); in ocfs2_split_refcount_rec()
1994 struct buffer_head *ref_leaf_bh = NULL; in __ocfs2_increase_refcount() local
2005 &ref_leaf_bh); in __ocfs2_increase_refcount()
2029 ref_leaf_bh, index, in __ocfs2_increase_refcount()
2042 ref_leaf_bh, in __ocfs2_increase_refcount()
2060 ref_root_bh, ref_leaf_bh, in __ocfs2_increase_refcount()
2071 brelse(ref_leaf_bh); in __ocfs2_increase_refcount()
2072 ref_leaf_bh = NULL; in __ocfs2_increase_refcount()
2076 brelse(ref_leaf_bh); in __ocfs2_increase_refcount()
2083 struct buffer_head *ref_leaf_bh, in ocfs2_remove_refcount_extent() argument
2090 (struct ocfs2_refcount_block *)ref_leaf_bh->b_data; in ocfs2_remove_refcount_extent()
2097 (unsigned long long)ref_leaf_bh->b_blocknr, in ocfs2_remove_refcount_extent()
2108 ocfs2_remove_from_cache(ci, ref_leaf_bh); in ocfs2_remove_refcount_extent()
2175 struct buffer_head *ref_leaf_bh, in ocfs2_decrease_refcount_rec() argument
2182 (struct ocfs2_refcount_block *)ref_leaf_bh->b_data; in ocfs2_decrease_refcount_rec()
2196 ref_leaf_bh, index, 1, -1); in ocfs2_decrease_refcount_rec()
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()
2218 ref_leaf_bh, meta_ac, in ocfs2_decrease_refcount_rec()
2240 struct buffer_head *ref_leaf_bh = NULL; in __ocfs2_decrease_refcount() local
2249 &ref_leaf_bh); in __ocfs2_decrease_refcount()
2264 ref_leaf_bh, index, in __ocfs2_decrease_refcount()
2284 brelse(ref_leaf_bh); in __ocfs2_decrease_refcount()
2285 ref_leaf_bh = NULL; in __ocfs2_decrease_refcount()
2289 brelse(ref_leaf_bh); in __ocfs2_decrease_refcount()
2389 struct buffer_head *ref_leaf_bh = NULL, *prev_bh = NULL; in ocfs2_calc_refcount_meta_credits() local
2395 &index, &ref_leaf_bh); in ocfs2_calc_refcount_meta_credits()
2401 if (ref_leaf_bh != prev_bh) { in ocfs2_calc_refcount_meta_credits()
2419 prev_bh = ref_leaf_bh; in ocfs2_calc_refcount_meta_credits()
2464 brelse(ref_leaf_bh); in ocfs2_calc_refcount_meta_credits()
2465 ref_leaf_bh = NULL; in ocfs2_calc_refcount_meta_credits()
2511 brelse(ref_leaf_bh); in ocfs2_calc_refcount_meta_credits()
3214 struct buffer_head *ref_leaf_bh = NULL; in ocfs2_make_clusters_writable() local
3248 &rec, &index, &ref_leaf_bh); in ocfs2_make_clusters_writable()
3313 brelse(ref_leaf_bh); in ocfs2_make_clusters_writable()
3314 ref_leaf_bh = NULL; in ocfs2_make_clusters_writable()
3350 brelse(ref_leaf_bh); in ocfs2_make_clusters_writable()
3549 struct buffer_head *ref_leaf_bh = NULL; in ocfs2_refcounted_xattr_delete_need() local
3566 &ref_leaf_bh); in ocfs2_refcounted_xattr_delete_need()
3574 rb = (struct ocfs2_refcount_block *)ref_leaf_bh->b_data; in ocfs2_refcounted_xattr_delete_need()
3588 brelse(ref_leaf_bh); in ocfs2_refcounted_xattr_delete_need()
3589 ref_leaf_bh = NULL; in ocfs2_refcounted_xattr_delete_need()
3615 brelse(ref_leaf_bh); in ocfs2_refcounted_xattr_delete_need()