diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2018-12-19 15:20:44 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2018-12-19 15:21:54 -0500 |
commit | 99ccaf73a8b92d6cb5d6892142a12468081a2b0d (patch) | |
tree | 33485dc8938ec4ff92fd653fae58355a85e861cc /libbcachefs/quota.h | |
parent | f9ba96e16535a653b97f7f1f953fabf477737a96 (diff) |
Update bcachefs sources to 2724e115d2 bcachefs: Lots of option handling improvements
Diffstat (limited to 'libbcachefs/quota.h')
-rw-r--r-- | libbcachefs/quota.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libbcachefs/quota.h b/libbcachefs/quota.h index eabb94c1..34b4a0f0 100644 --- a/libbcachefs/quota.h +++ b/libbcachefs/quota.h @@ -19,7 +19,7 @@ static inline struct bch_qid bch_qid(struct bch_inode_unpacked *u) return (struct bch_qid) { .q[QTYP_USR] = u->bi_uid, .q[QTYP_GRP] = u->bi_gid, - .q[QTYP_PRJ] = u->bi_project, + .q[QTYP_PRJ] = u->bi_project ? u->bi_project - 1 : 0, }; } @@ -55,7 +55,8 @@ static inline int bch2_quota_acct(struct bch_fs *c, struct bch_qid qid, static inline int bch2_quota_transfer(struct bch_fs *c, unsigned qtypes, struct bch_qid dst, - struct bch_qid src, u64 space) + struct bch_qid src, u64 space, + enum quota_acct_mode mode) { return 0; } |