mirror of
https://github.com/torvalds/linux.git
synced 2026-09-13 15:40:03 +02:00
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: a5b9155540 ("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>
This commit is contained in:
parent
de20f70149
commit
d7f97be48c
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user