summaryrefslogtreecommitdiff
path: root/fs/xfs/scrub/rtrmap_repair.c
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2021-09-01 11:25:04 -0700
committerDarrick J. Wong <djwong@kernel.org>2021-09-17 18:55:28 -0700
commit8894004f29e6d5bf300401714486bff40f71ad89 (patch)
treed260b51ad498e902212867936f8a084960f6d89a /fs/xfs/scrub/rtrmap_repair.c
parent2c94b6e9e6cb98a5a8b59fe66636b39d74d7f42a (diff)
xfs: experiment with dontcache when scanning inodesvectorized-scrub_2021-09-17
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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/scrub/rtrmap_repair.c b/fs/xfs/scrub/rtrmap_repair.c
index aaa5964a7cda..1ba8d979d82c 100644
--- a/fs/xfs/scrub/rtrmap_repair.c
+++ b/fs/xfs/scrub/rtrmap_repair.c
@@ -351,7 +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, 0, &ip);
+ error = xfs_iget(mp, rr->sc->tp, ino, 0, 0, &ip);
if (error == -ENOENT)
xfs_emerg(mp, "%s: iget of ino 0x%llx returned ENOENT?!",
__func__, ino);
@@ -381,7 +381,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;
}