summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2018-01-08 19:49:03 +0100
committerDarrick J. Wong <darrick.wong@oracle.com>2018-01-08 19:49:03 +0100
commit1ad1205e716fa2a88ca960601cc807cd38853c01 (patch)
tree06245a3f3dc34bb96ff175fd0709d545484e1631 /fs
parentxfs: xfs_scrub_bmap should use for_each_xfs_iext (diff)
downloadlinux-1ad1205e716fa2a88ca960601cc807cd38853c01.tar.xz
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')
-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;
}