Lines Matching refs:credits
921 int credits; in __ext4_xattr_set_credits() local
937 credits = 7; in __ext4_xattr_set_credits()
940 credits += EXT4_MAXQUOTAS_TRANS_BLOCKS(sb); in __ext4_xattr_set_credits()
947 credits += ext4_writepage_trans_blocks(inode) + 1; in __ext4_xattr_set_credits()
951 return credits; in __ext4_xattr_set_credits()
954 credits += 4; in __ext4_xattr_set_credits()
963 credits += blocks * 2; in __ext4_xattr_set_credits()
966 credits += blocks; in __ext4_xattr_set_credits()
972 credits += 4; in __ext4_xattr_set_credits()
983 credits += blocks * 2; in __ext4_xattr_set_credits()
995 credits += 1; in __ext4_xattr_set_credits()
997 return credits; in __ext4_xattr_set_credits()
1001 int credits, struct buffer_head *bh, in ext4_xattr_ensure_credits() argument
1009 if (handle->h_buffer_credits >= credits) in ext4_xattr_ensure_credits()
1012 error = ext4_journal_extend(handle, credits - handle->h_buffer_credits); in ext4_xattr_ensure_credits()
1031 error = ext4_journal_restart(handle, credits); in ext4_xattr_ensure_credits()
1182 int credits; in ext4_xattr_inode_dec_ref_all() local
1185 credits = 2 + extra_credits; in ext4_xattr_inode_dec_ref_all()
1206 err = ext4_xattr_ensure_credits(handle, parent, credits, bh, in ext4_xattr_inode_dec_ref_all()
2359 int credits; in ext4_xattr_set_handle() local
2367 credits = __ext4_xattr_set_credits(inode->i_sb, inode, bh, in ext4_xattr_set_handle()
2372 if (!ext4_handle_has_enough_credits(handle, credits)) { in ext4_xattr_set_handle()
2480 bool is_create, int *credits) in ext4_xattr_set_credits() argument
2485 *credits = 0; in ext4_xattr_set_credits()
2496 *credits = __ext4_xattr_set_credits(inode->i_sb, inode, bh, in ext4_xattr_set_credits()
2521 int credits; in ext4_xattr_set() local
2529 &credits); in ext4_xattr_set()
2533 handle = ext4_journal_start(inode, EXT4_HT_XATTR, credits); in ext4_xattr_set()