]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: fix dquot scrub loop cancellation
authorDarrick J. Wong <djwong@kernel.org>
Mon, 22 Mar 2021 16:51:52 +0000 (09:51 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 25 Mar 2021 23:47:49 +0000 (16:47 -0700)
commit3f018edaedb84edeb9c7b490cc98ee81b9cef67e
treed2f525c284e879f92498c8db3e5342dd882a30f1
parent8b9b5ff2553f90422f3a2168d9c2d5a2fc6eea24
xfs: fix dquot scrub loop cancellation

When xchk_quota_item figures out that it needs to terminate the scrub
operation, it needs to return some error code to abort the loop, but
instead it returns zero and the loop keeps running.  Fix this by making
it use ECANCELED, and fix the other loop bailout condition check at the
bottom too.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/scrub/quota.c