summaryrefslogtreecommitdiff
path: root/fs/xfs/scrub/rtrmap_repair.c
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2021-02-20 08:18:20 -0800
committerDarrick J. Wong <djwong@kernel.org>2021-03-25 17:08:55 -0700
commit13a296999ea49dd4cb16cab75c3aef5e691ed124 (patch)
tree01352ba13312a481be236c65046f47c8d569bbc4 /fs/xfs/scrub/rtrmap_repair.c
parent2fc33b20316a173c7de3451b6cb6c64d6ca900b2 (diff)
xfs: experiment with dontcache when scanning inodesvectorized-scrub_2021-03-25
Add some experimental flags to drop inodes from the cache after a scan. Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Diffstat (limited to 'fs/xfs/scrub/rtrmap_repair.c')
-rw-r--r--fs/xfs/scrub/rtrmap_repair.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/xfs/scrub/rtrmap_repair.c b/fs/xfs/scrub/rtrmap_repair.c
index 34b1ed463cdd..1605364a4403 100644
--- a/fs/xfs/scrub/rtrmap_repair.c
+++ b/fs/xfs/scrub/rtrmap_repair.c
@@ -351,8 +351,7 @@ xrep_rtrmap_scan_inode(
return 0;
/* Grab inode and lock it so we can scan it. */
- error = xfs_iget(mp, rr->sc->tp, ino,
- XFS_IGET_DONTCACHE | XFS_IGET_UNLINKED, 0, &ip);
+ error = xfs_iget(mp, rr->sc->tp, ino, XFS_IGET_UNLINKED, 0, &ip);
if (error)
return error;
@@ -379,7 +378,7 @@ xrep_rtrmap_scan_inode(
out_unlock:
xfs_iunlock(ip, XFS_ILOCK_SHARED);
out_rele:
- xfs_irele(ip);
+ xchk_irele(rr->sc, ip);
return error;
}