Lines Matching refs:credits
2782 credits = ocfs2_inline_to_extents_credits(sb); in ocfs2_expand_inline_dir() local
2806 credits += ocfs2_add_dir_index_credits(sb); in ocfs2_expand_inline_dir()
2850 credits += OCFS2_SUBALLOC_ALLOC; in ocfs2_expand_inline_dir()
2852 handle = ocfs2_start_trans(osb, credits); in ocfs2_expand_inline_dir()
3164 int credits, num_free_extents, drop_alloc_sem = 0; in ocfs2_extend_dir() local
3218 credits = OCFS2_SIMPLE_DIR_EXTEND_CREDITS; in ocfs2_extend_dir()
3260 credits = ocfs2_calc_extend_credits(sb, el); in ocfs2_extend_dir()
3263 credits = OCFS2_SIMPLE_DIR_EXTEND_CREDITS; in ocfs2_extend_dir()
3268 credits++; /* For attaching the new dirent block to the in ocfs2_extend_dir()
3271 handle = ocfs2_start_trans(osb, credits); in ocfs2_extend_dir()
3686 int credits = ocfs2_clusters_to_blocks(osb->sb, 3); in ocfs2_dx_dir_rebalance_credits() local
3688 credits += ocfs2_calc_extend_credits(osb->sb, &dx_root->dr_list); in ocfs2_dx_dir_rebalance_credits()
3689 credits += ocfs2_quota_trans_credits(osb->sb); in ocfs2_dx_dir_rebalance_credits()
3690 return credits; in ocfs2_dx_dir_rebalance_credits()
3704 int credits, ret, i, num_used, did_quota = 0; in ocfs2_dx_dir_rebalance() local
3760 credits = ocfs2_dx_dir_rebalance_credits(osb, dx_root); in ocfs2_dx_dir_rebalance()
3761 handle = ocfs2_start_trans(osb, credits); in ocfs2_dx_dir_rebalance()