xfs: fix dqiterate thinko
authorDarrick J. Wong <djwong@kernel.org>
Tue, 8 Aug 2023 02:40:30 +0000 (19:40 -0700)
committerChandan Babu R <chandan.babu@oracle.com>
Fri, 18 Aug 2023 08:12:36 +0000 (13:42 +0530)
commit2c234a22866e4f322ca578397ad381f02a95001a
tree29430c6a421b011bf631ff1f7db7614d7a3f73f7
parent220c8d57f55fcd73191ed06710fcf9bfc801ff8e
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" <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Chandan Babu R <chandan.babu@oracle.com>
fs/xfs/xfs_dquot.c