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)
commit0a713bd41ea2b19904232b9c5278012c4361bc04
tree88e0c7e1758e4f7324a4c5e52d0e2a6b45d8e1e3
parenta7a0f9a5503f4da3b6489583ce4ef9abc0ab2475
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>
fs/xfs/scrub/quota.c