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)
commit05237032fdec14a7f393259620d522e9c9a92685
treed2f525c284e879f92498c8db3e5342dd882a30f1
parent1aa26707ebd65e1260f4a912cae1fb4c37cc4ebd
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