forked from Minki/linux
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
@ -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 New Issue
Block a user