Lines Matching refs:credits
774 int credits = OCFS2_REFCOUNT_TREE_REMOVE_CREDITS; in ocfs2_remove_refcount_tree() local
818 credits += OCFS2_SUBALLOC_FREE; in ocfs2_remove_refcount_tree()
821 handle = ocfs2_start_trans(osb, credits); in ocfs2_remove_refcount_tree()
2382 int *credits) in ocfs2_calc_refcount_meta_credits() argument
2416 *credits += 1; in ocfs2_calc_refcount_meta_credits()
2476 *credits += 1; in ocfs2_calc_refcount_meta_credits()
2483 *credits += ref_blocks; in ocfs2_calc_refcount_meta_credits()
2498 *credits += ocfs2_calc_extend_credits(sb, in ocfs2_calc_refcount_meta_credits()
2501 *credits += OCFS2_EXPAND_REFCOUNT_TREE_CREDITS; in ocfs2_calc_refcount_meta_credits()
2509 *meta_add, *credits); in ocfs2_calc_refcount_meta_credits()
2531 int *credits, in ocfs2_prepare_refcount_change_for_del() argument
2565 ref_blocks, credits); in ocfs2_prepare_refcount_change_for_del()
2571 trace_ocfs2_prepare_refcount_change_for_del(*ref_blocks, *credits); in ocfs2_prepare_refcount_change_for_del()
2851 int *credits) in ocfs2_lock_refcount_allocators() argument
2866 *credits += ocfs2_calc_extend_credits(sb, et->et_root_el); in ocfs2_lock_refcount_allocators()
2870 &meta_add, credits); in ocfs2_lock_refcount_allocators()
2876 trace_ocfs2_lock_refcount_allocators(meta_add, *credits); in ocfs2_lock_refcount_allocators()
3215 int ret, delete, index, credits = 0; in ocfs2_make_clusters_writable() local
3232 &context->data_ac, &credits); in ocfs2_make_clusters_writable()
3239 credits += context->post_refcount->credits; in ocfs2_make_clusters_writable()
3241 credits += context->extra_credits; in ocfs2_make_clusters_writable()
3242 handle = ocfs2_start_trans(osb, credits); in ocfs2_make_clusters_writable()
3547 int *meta_add, int *credits) in ocfs2_refcounted_xattr_delete_need() argument
3592 *credits += 1; in ocfs2_refcounted_xattr_delete_need()
3610 *credits += OCFS2_EXPAND_REFCOUNT_TREE_CREDITS; in ocfs2_refcounted_xattr_delete_need()
3615 *credits += ocfs2_calc_extend_credits(inode->i_sb, in ocfs2_refcounted_xattr_delete_need()
3699 int credits = 1, ref_blocks = 0; in ocfs2_add_refcount_flag() local
3709 &ref_blocks, &credits); in ocfs2_add_refcount_flag()
3715 trace_ocfs2_add_refcount_flag(ref_blocks, credits); in ocfs2_add_refcount_flag()
3727 credits += post->credits; in ocfs2_add_refcount_flag()
3729 handle = ocfs2_start_trans(osb, credits); in ocfs2_add_refcount_flag()
3912 int credits = 0; in ocfs2_add_refcounted_extent() local
3920 NULL, &credits); in ocfs2_add_refcounted_extent()
3926 handle = ocfs2_start_trans(osb, credits); in ocfs2_add_refcounted_extent()