summaryrefslogtreecommitdiff
path: root/fs/xfs/scrub/quotacheck.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/quotacheck.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/quotacheck.c')
-rw-r--r--fs/xfs/scrub/quotacheck.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/scrub/quotacheck.c b/fs/xfs/scrub/quotacheck.c
index 89f4f833c3ad..07f50e48b986 100644
--- a/fs/xfs/scrub/quotacheck.c
+++ b/fs/xfs/scrub/quotacheck.c
@@ -437,7 +437,7 @@ xqcheck_collect_counts(
struct xfs_scrub *sc = xqc->sc;
struct xchk_iscan *iscan = &xqc->iscan;
struct xfs_inode *ip;
- int flags = XFS_IGET_UNTRUSTED | XFS_IGET_DONTCACHE;
+ int flags = XFS_IGET_UNTRUSTED;
unsigned int retries = 20;
int error;
@@ -451,7 +451,7 @@ xqcheck_collect_counts(
switch (error) {
case 0:
error = xqcheck_inode(xqc, ip);
- xfs_irele(ip);
+ xchk_irele(sc, ip);
if (error)
return error;
retries = 20;