diff options
author | Darrick J. Wong <djwong@kernel.org> | 2022-07-14 11:05:44 -0700 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2022-10-14 14:16:26 -0700 |
commit | 68a312deb494321b85c6a468ac2fb7db7d7e8b93 (patch) | |
tree | 44cb362cc2f351255ba0f13ed012d115c81eb206 /fs/xfs/xfs_mount.c | |
parent | ddddae6e35f0c8582e8835706cfd7aabb49d6a07 (diff) |
xfs: don't return -EFSCORRUPTED from repair when resources cannot be grabbedscrub-fix-return-value_2022-10-14
If we tried to repair something but the repair failed with -EDEADLOCK or
-EAGAIN, that means that the repair function couldn't grab some resource
it needed and wants us to try again. If we try again (with TRY_HARDER)
but still can't do it, exit back to userspace, since xfs_scrub_metadata
requires xrep_attempt to return -EAGAIN.
This makes the return value diagnostics look less weird, and fixes a
wart that remains from very early in the repair implementation.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Diffstat (limited to 'fs/xfs/xfs_mount.c')
0 files changed, 0 insertions, 0 deletions