summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2026-09-01 22:49:32 -0700
committerCarlos Maiolino <cem@kernel.org>2026-09-07 07:50:36 +0200
commitd7f97be48cbe3751e44a45373c0e91e93b976f98 (patch)
tree2beedaad31e1242f97d2833842873e3cf07d5895
parentde20f7014917d661afc03d9a1c157d0ae2775b49 (diff)
downloadlinux-next-d7f97be48cbe3751e44a45373c0e91e93b976f98.tar.gz
linux-next-d7f97be48cbe3751e44a45373c0e91e93b976f98.zip
xfs: fix backwards skipping logic in xrep_quota_block
LOLLM complains about the logic in xrep_quota_block that skips reinitializing the ondisk dquot if there aren't any problems that would impede a dqiterate walk later. I got the type checking logic backwards, which is the source of the problem. Fix that. Cc: stable@vger.kernel.org # v6.8 Fixes: a5b91555403e3a ("xfs: repair quotas") Signed-off-by: Darrick J. Wong <djwong@kernel.org> Assisted-by: LOLLM # finding obvious bugs Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Carlos Maiolino <cem@kernel.org>
-rw-r--r--fs/xfs/scrub/quota_repair.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/scrub/quota_repair.c b/fs/xfs/scrub/quota_repair.c
index 5c22bb6ccffa..59302e8afc7e 100644
--- a/fs/xfs/scrub/quota_repair.c
+++ b/fs/xfs/scrub/quota_repair.c
@@ -325,7 +325,7 @@ xrep_quota_block(
* If there's nothing that would impede a dqiterate, we're
* done.
*/
- if ((ddq->d_type & XFS_DQTYPE_REC_MASK) != dqtype ||
+ if ((ddq->d_type & XFS_DQTYPE_REC_MASK) == dqtype &&
id == be32_to_cpu(ddq->d_id)) {
xfs_trans_brelse(sc->tp, bp);
return 0;