Commit 0a713bd4 authored by Darrick J. Wong's avatar Darrick J. Wong
Browse files

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: default avatarDarrick J. Wong <djwong@kernel.org>
Reviewed-by: default avatarDave Chinner <dchinner@redhat.com>
parent a7a0f9a5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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