summaryrefslogtreecommitdiff
path: root/fs/bcachefs/quota.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/bcachefs/quota.h')
-rw-r--r--fs/bcachefs/quota.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/fs/bcachefs/quota.h b/fs/bcachefs/quota.h
index 0c3eb6973de1..5da9189b8971 100644
--- a/fs/bcachefs/quota.h
+++ b/fs/bcachefs/quota.h
@@ -14,12 +14,6 @@ void bch2_quota_to_text(struct printbuf *, struct bch_fs *, struct bkey_s_c);
.val_to_text = bch2_quota_to_text, \
}
-enum quota_acct_mode {
- KEY_TYPE_QUOTA_PREALLOC,
- KEY_TYPE_QUOTA_WARN,
- KEY_TYPE_QUOTA_NOCHECK,
-};
-
static inline struct bch_qid bch_qid(struct bch_inode_unpacked *u)
{
return (struct bch_qid) {
@@ -38,11 +32,13 @@ static inline unsigned enabled_qtypes(struct bch_fs *c)
#ifdef CONFIG_BCACHEFS_QUOTA
+int __bch2_quota_acct(struct bch_fs *, unsigned, struct bch_qid,
+ enum quota_counters, s64, enum quota_acct_mode);
int bch2_quota_acct(struct bch_fs *, struct bch_qid, enum quota_counters,
s64, enum quota_acct_mode);
int bch2_quota_transfer(struct bch_fs *, unsigned, struct bch_qid,
- struct bch_qid, u64);
+ struct bch_qid, u64, enum quota_acct_mode);
void bch2_fs_quota_exit(struct bch_fs *);
void bch2_fs_quota_init(struct bch_fs *);