From: Darrick J. Wong Date: Tue, 8 Aug 2023 02:40:30 +0000 (-0700) Subject: xfs: fix dqiterate thinko X-Git-Tag: v6.6.7~2054^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2c234a22866e4f322ca578397ad381f02a95001a;p=platform%2Fkernel%2Flinux-starfive.git xfs: fix dqiterate thinko For some unknown reason, when I converted the incore dquot objects to store the dquot id in host endian order, I removed the increment here. This causes the scan to stop after retrieving the root dquot, which severely limits the usefulness of the quota scrubber. Fix the lost increment, though it won't fix the problem that the quota iterator code filters out zeroed dquot records. Fixes: c51df7334167e ("xfs: stop using q_core.d_id in the quota code") Signed-off-by: "Darrick J. Wong" Reviewed-by: Dave Chinner Signed-off-by: Chandan Babu R --- diff --git a/fs/xfs/xfs_dquot.c b/fs/xfs/xfs_dquot.c index 7f07175..ac6ba64 100644 --- a/fs/xfs/xfs_dquot.c +++ b/fs/xfs/xfs_dquot.c @@ -1386,7 +1386,7 @@ xfs_qm_dqiterate( return error; error = iter_fn(dq, type, priv); - id = dq->q_id; + id = dq->q_id + 1; xfs_qm_dqput(dq); } while (error == 0 && id != 0);