Lines Matching refs:credits

309 					int *credits);
714 int status = 0, credits; in ocfs2_xattr_extend_allocation() local
759 credits = ocfs2_calc_extend_credits(inode->i_sb, in ocfs2_xattr_extend_allocation()
761 status = ocfs2_extend_trans(handle, credits); in ocfs2_xattr_extend_allocation()
3053 int clusters_add = 0, meta_add = 0, credits = 0; in ocfs2_calc_xattr_set_need() local
3070 credits += new_clusters * in ocfs2_calc_xattr_set_need()
3074 credits += ocfs2_blocks_per_xattr_bucket(inode->i_sb); in ocfs2_calc_xattr_set_need()
3078 credits += ocfs2_calc_extend_credits(inode->i_sb, in ocfs2_calc_xattr_set_need()
3090 credits += OCFS2_INODE_UPDATE_CREDITS; in ocfs2_calc_xattr_set_need()
3106 credits += ocfs2_blocks_per_xattr_bucket(inode->i_sb); in ocfs2_calc_xattr_set_need()
3109 credits += OCFS2_XATTR_BLOCK_UPDATE_CREDITS; in ocfs2_calc_xattr_set_need()
3122 credits += ocfs2_remove_extent_credits(inode->i_sb); in ocfs2_calc_xattr_set_need()
3139 credits += ocfs2_remove_extent_credits(inode->i_sb) + in ocfs2_calc_xattr_set_need()
3142 credits += ocfs2_calc_extend_credits( in ocfs2_calc_xattr_set_need()
3163 credits += ocfs2_remove_extent_credits(inode->i_sb); in ocfs2_calc_xattr_set_need()
3168 credits += ocfs2_calc_extend_credits(inode->i_sb, in ocfs2_calc_xattr_set_need()
3214 credits += ocfs2_calc_extend_credits(inode->i_sb, in ocfs2_calc_xattr_set_need()
3217 credits += OCFS2_SUBALLOC_ALLOC + 1; in ocfs2_calc_xattr_set_need()
3227 credits += ocfs2_blocks_per_xattr_bucket(inode->i_sb); in ocfs2_calc_xattr_set_need()
3230 credits += ocfs2_blocks_per_xattr_bucket(inode->i_sb); in ocfs2_calc_xattr_set_need()
3234 credits += OCFS2_XATTR_BLOCK_CREATE_CREDITS; in ocfs2_calc_xattr_set_need()
3238 credits += ocfs2_calc_extend_credits(inode->i_sb, in ocfs2_calc_xattr_set_need()
3250 *credits_need = credits; in ocfs2_calc_xattr_set_need()
3262 int *credits) in ocfs2_init_xattr_set_ctxt() argument
3272 &clusters_add, &meta_add, credits); in ocfs2_init_xattr_set_ctxt()
3280 clusters_add, *credits); in ocfs2_init_xattr_set_ctxt()
3318 int ret = 0, credits, old_found; in __ocfs2_xattr_set_handle() local
3346 &credits); in __ocfs2_xattr_set_handle()
3353 ret = ocfs2_extend_trans(ctxt->handle, credits); in __ocfs2_xattr_set_handle()
3376 &credits); in __ocfs2_xattr_set_handle()
3383 ret = ocfs2_extend_trans(ctxt->handle, credits); in __ocfs2_xattr_set_handle()
3411 &credits); in __ocfs2_xattr_set_handle()
3417 ret = ocfs2_extend_trans(ctxt->handle, credits); in __ocfs2_xattr_set_handle()
3544 int ret, credits, had_lock, ref_meta = 0, ref_credits = 0; in ocfs2_xattr_set() local
3641 &xbs, &ctxt, ref_meta, &credits); in ocfs2_xattr_set()
3648 credits += OCFS2_INODE_UPDATE_CREDITS; in ocfs2_xattr_set()
3649 ctxt.handle = ocfs2_start_trans(osb, credits + ref_credits); in ocfs2_xattr_set()
4889 int i, ret, credits; in ocfs2_mv_xattr_buckets() local
4924 credits = ((num_buckets + 1) * blks_per_bucket); in ocfs2_mv_xattr_buckets()
4925 ret = ocfs2_extend_trans(handle, credits); in ocfs2_mv_xattr_buckets()
4994 int ret, credits = 2 * blk_per_bucket; in ocfs2_divide_xattr_cluster() local
4998 ret = ocfs2_extend_trans(handle, credits); in ocfs2_divide_xattr_cluster()
5207 int ret, credits; in ocfs2_extend_xattr_bucket() local
5231 credits = (end_blk - target_blk) + (3 * blk_per_bucket); in ocfs2_extend_xattr_bucket()
5232 ret = ocfs2_extend_trans(handle, credits); in ocfs2_extend_xattr_bucket()
5671 int credits = ocfs2_remove_extent_credits(osb->sb) + in ocfs2_delete_xattr_in_bucket() local
5697 ctxt.handle = ocfs2_start_trans(osb, credits + ref_credits); in ocfs2_delete_xattr_in_bucket()
5774 int *credits) in ocfs2_prepare_refcount_xattr() argument
5821 refcount.credits = bucket->bu_blocks; in ocfs2_prepare_refcount_xattr()
5876 meta_add, credits); in ocfs2_prepare_refcount_xattr()
6059 .credits = bucket->bu_blocks, in ocfs2_xattr_bucket_value_refcount()
6225 int *metas, int *credits, in ocfs2_value_metas_in_xattr_header() argument
6248 *credits += ocfs2_calc_extend_credits(sb, in ocfs2_value_metas_in_xattr_header()
6293 int *credits, in ocfs2_reflink_lock_xattr_allocators() argument
6300 *credits = 0; in ocfs2_reflink_lock_xattr_allocators()
6303 &meta_add, credits, &num_recs, in ocfs2_reflink_lock_xattr_allocators()
6320 *credits += num_recs + num_recs * OCFS2_EXPAND_REFCOUNT_TREE_CREDITS; in ocfs2_reflink_lock_xattr_allocators()
6322 *credits += le16_to_cpu(rb->rf_list.l_tree_depth) * in ocfs2_reflink_lock_xattr_allocators()
6325 *credits += 1; in ocfs2_reflink_lock_xattr_allocators()
6474 int ret = 0, credits = 0; in ocfs2_reflink_xattr_inline() local
6493 &credits, &meta_ac); in ocfs2_reflink_xattr_inline()
6499 handle = ocfs2_start_trans(osb, credits); in ocfs2_reflink_xattr_inline()
6594 int ret = 0, credits = 0; in ocfs2_reflink_xattr_block() local
6613 &credits, &meta_ac); in ocfs2_reflink_xattr_block()
6620 handle = ocfs2_start_trans(osb, credits + 1); in ocfs2_reflink_xattr_block()
6713 int credits; member
6742 metas->credits += bucket->bu_blocks; in ocfs2_calc_value_tree_metas()
6745 &metas->credits, &metas->num_recs, in ocfs2_calc_value_tree_metas()
6758 u64 blkno, u32 len, int *credits, in ocfs2_lock_reflink_xattr_rec_allocators() argument
6776 *credits = metas.credits; in ocfs2_lock_reflink_xattr_rec_allocators()
6794 *credits += metas.num_recs + in ocfs2_lock_reflink_xattr_rec_allocators()
6797 *credits += le16_to_cpu(rb->rf_list.l_tree_depth) * in ocfs2_lock_reflink_xattr_rec_allocators()
6800 *credits += 1; in ocfs2_lock_reflink_xattr_rec_allocators()
6813 *credits += ocfs2_calc_extend_credits(osb->sb, in ocfs2_lock_reflink_xattr_rec_allocators()
7010 int ret, credits = 0; in ocfs2_reflink_xattr_rec() local
7026 len, &credits, in ocfs2_reflink_xattr_rec()
7033 handle = ocfs2_start_trans(osb, credits); in ocfs2_reflink_xattr_rec()