mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-28 23:24:50 +00:00
xfs: always grab transaction when scrubbing inode
Always allocate a transaction for inode scrubbing, even if the _iget fails. This is something that is nice to have now for consistency with the other scrubbers but will become critical when we get to online repair where we'll actually use the transaction + raw buffer read to fix the verifier errors. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Dave Chinner <dchinner@redhat.com>
This commit is contained in:
parent
2b9e9b5771
commit
1ad1205e71
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ xfs_scrub_setup_inode(
|
|||
break;
|
||||
case -EFSCORRUPTED:
|
||||
case -EFSBADCRC:
|
||||
return 0;
|
||||
return xfs_scrub_trans_alloc(sc->sm, mp, &sc->tp);
|
||||
default:
|
||||
return error;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue