summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/quota.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2018-12-19 08:43:01 -0500
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 17:08:14 -0400
commit2fab25cdd70be6868936639dfb03eaa9fa0245c0 (patch)
treebe7d06507d673e81f7400edb3a9c5565f00b0de9 /fs/bcachefs/quota.h
parent69d46f903120d4aab0e0ad239191245d839224cc (diff)
downloadlinux-2fab25cdd70be6868936639dfb03eaa9fa0245c0.tar.gz
linux-2fab25cdd70be6868936639dfb03eaa9fa0245c0.tar.bz2
linux-2fab25cdd70be6868936639dfb03eaa9fa0245c0.zip
bcachefs: more project quota fixes
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
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,
};
}