From: Darrick J. Wong Date: Mon, 8 Jan 2018 18:49:03 +0000 (-0800) Subject: xfs: always grab transaction when scrubbing inode X-Git-Tag: v4.19~1640^2~82 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1ad1205e716fa2a88ca960601cc807cd38853c01;p=platform%2Fkernel%2Flinux-rpi.git 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 Reviewed-by: Dave Chinner --- diff --git a/fs/xfs/scrub/inode.c b/fs/xfs/scrub/inode.c index 2be4b25..61cd112 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; }