summaryrefslogtreecommitdiff
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 47e343cc0262..34b4a0f0ae77 100644
--- a/fs/bcachefs/quota.h
+++ b/fs/bcachefs/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,
};
}