diff options
author | 2022-11-06 17:03:17 -0800 | |
---|---|---|
committer | 2022-11-16 15:25:02 -0800 | |
commit | 0a713bd41ea2b19904232b9c5278012c4361bc04 (patch) | |
tree | 88e0c7e1758e4f7324a4c5e52d0e2a6b45d8e1e3 /fs/xfs/scrub | |
parent | xfs: return EINTR when a fatal signal terminates scrub (diff) | |
download | linux-0a713bd41ea2b19904232b9c5278012c4361bc04.tar.gz linux-0a713bd41ea2b19904232b9c5278012c4361bc04.tar.bz2 linux-0a713bd41ea2b19904232b9c5278012c4361bc04.zip |
xfs: fix return code when fatal signal encountered during dquot scrub
If the scrub process is sent a fatal signal while we're checking dquots,
the predicate for this will set the error code to -EINTR. Don't then
squash that into -ECANCELED, because the wrong errno turns up in the
trace output.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Diffstat (limited to 'fs/xfs/scrub')
-rw-r--r-- | fs/xfs/scrub/quota.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/scrub/quota.c b/fs/xfs/scrub/quota.c index 21b4c9006859..0b643ff32b22 100644 --- a/fs/xfs/scrub/quota.c +++ b/fs/xfs/scrub/quota.c @@ -84,7 +84,7 @@ xchk_quota_item( int error = 0; if (xchk_should_terminate(sc, &error)) - return -ECANCELED; + return error; /* * Except for the root dquot, the actual dquot we got must either have |