From 807abf36c1e119825d42cda6f6b249649ca44eb5 Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Fri, 16 Feb 2018 15:36:33 -0500 Subject: Update bcachefs sources to e99d29e402 bcachefs: zstd support, compression refactoring --- libbcachefs/quota.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libbcachefs/quota.h') diff --git a/libbcachefs/quota.h b/libbcachefs/quota.h index b5536be9..509b7f0e 100644 --- a/libbcachefs/quota.h +++ b/libbcachefs/quota.h @@ -20,6 +20,13 @@ static inline struct bch_qid bch_qid(struct bch_inode_unpacked *u) }; } +static inline unsigned enabled_qtypes(struct bch_fs *c) +{ + return ((c->opts.usrquota << QTYP_USR)| + (c->opts.grpquota << QTYP_GRP)| + (c->opts.prjquota << QTYP_PRJ)); +} + #ifdef CONFIG_BCACHEFS_QUOTA int bch2_quota_acct(struct bch_fs *, struct bch_qid, enum quota_counters, -- cgit v1.2.3