summaryrefslogtreecommitdiffstats
path: root/fs/xfs/scrub
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2018-01-08 10:49:03 -0800
committerDarrick J. Wong <darrick.wong@oracle.com>2018-01-08 10:49:03 -0800
commit1ad1205e716fa2a88ca960601cc807cd38853c01 (patch)
tree06245a3f3dc34bb96ff175fd0709d545484e1631 /fs/xfs/scrub
parent2b9e9b5771fdcff3d307faaade23bd4e965374da (diff)
downloadlinux-1ad1205e716fa2a88ca960601cc807cd38853c01.tar.gz
linux-1ad1205e716fa2a88ca960601cc807cd38853c01.tar.bz2
linux-1ad1205e716fa2a88ca960601cc807cd38853c01.zip
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>
Diffstat (limited to 'fs/xfs/scrub')
-rw-r--r--fs/xfs/scrub/inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/scrub/inode.c b/fs/xfs/scrub/inode.c
index 2be4b259477a..61cd1123bc4a 100644
--- a/fs/xfs/scrub/inode.c
+++ b/fs/xfs/scrub/inode.c
@@ -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;
}