xfs: fix return code when fatal signal encountered during dquot scrub
authorDarrick J. Wong <djwong@kernel.org>
Mon, 7 Nov 2022 01:03:17 +0000 (17:03 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 16 Nov 2022 23:25:02 +0000 (15:25 -0800)
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>
fs/xfs/scrub/quota.c

index 21b4c90..0b643ff 100644 (file)
@@ -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