summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2018-01-19 16:33:42 -0500
committerKent Overstreet <kent.overstreet@gmail.com>2018-01-19 16:33:42 -0500
commitdf4d75d7f5f8288a9c4102d5e18c08dc6d9e3dc0 (patch)
treef38df60f30b70bca85e9f43d006c031f8d48b3d0
parentd9d56816792bc6a8de0b337f0ec3961eac27e651 (diff)
bcachefs: fix build warnings with quotas off
-rw-r--r--fs/bcachefs/quota.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/fs/bcachefs/quota.h b/fs/bcachefs/quota.h
index 09d51a839c9d..b5536be94ed4 100644
--- a/fs/bcachefs/quota.h
+++ b/fs/bcachefs/quota.h
@@ -36,8 +36,19 @@ extern const struct quotactl_ops bch2_quotactl_operations;
#else
-#define bch2_quota_acct(_c, _uid, _gid, _counter, _v) (0)
-#define bch2_quota_transfer(_c, _type, _src, _dst, _v) (0)
+static inline int bch2_quota_acct(struct bch_fs *c, struct bch_qid qid,
+ enum quota_counters counter, s64 v,
+ enum quota_acct_mode mode)
+{
+ return 0;
+}
+
+static inline int bch2_quota_transfer(struct bch_fs *c, unsigned qtypes,
+ struct bch_qid dst,
+ struct bch_qid src, u64 space)
+{
+ return 0;
+}
static inline void bch2_fs_quota_exit(struct bch_fs *c) {}
static inline void bch2_fs_quota_init(struct bch_fs *c) {}