summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/quota.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/bcachefs/quota.h')
-rw-r--r--fs/bcachefs/quota.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/quota.h b/fs/bcachefs/quota.h
index 72b5ea0d77c5..51e4f9713ef0 100644
--- a/fs/bcachefs/quota.h
+++ b/fs/bcachefs/quota.h
@@ -20,7 +20,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,
};
}