summaryrefslogtreecommitdiff
path: root/libbcachefs/quota.h
diff options
context:
space:
mode:
Diffstat (limited to 'libbcachefs/quota.h')
-rw-r--r--libbcachefs/quota.h5
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;
}