summaryrefslogtreecommitdiff
path: root/fs/xfs/xfs_iwalk.h
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-12-15 17:29:28 -0800
commit57569114e72124aebbe2ad863138fe8c5d19e1c1 (patch)
tree4abcf9db477f1aa2db82f0f756f0a6c8ecae0d64 /fs/xfs/xfs_iwalk.h
parenta1598fe19d9dfc6e8bd0aaa0efff9c3e446e5dbe (diff)
xfs: experiment with dontcache when scanning inodesvectorized-scrub_2021-12-15
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/xfs_iwalk.h')
-rw-r--r--fs/xfs/xfs_iwalk.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/fs/xfs/xfs_iwalk.h b/fs/xfs/xfs_iwalk.h
index d7a082e45cbf..bdec747ff834 100644
--- a/fs/xfs/xfs_iwalk.h
+++ b/fs/xfs/xfs_iwalk.h
@@ -31,8 +31,12 @@ int xfs_iwalk_threaded(struct xfs_mount *mp, xfs_ino_t startino,
/* Signal that we can return metadata directories. */
#define XFS_IWALK_METADIR (0x2)
+/* Don't drop inodes. */
+#define XFS_IWALK_RETAIN_INODES (0x4)
+
#define XFS_IWALK_FLAGS_ALL (XFS_IWALK_SAME_AG | \
- XFS_IWALK_METADIR)
+ XFS_IWALK_METADIR | \
+ XFS_IWALK_RETAIN_INODES)
/* Walk all inode btree records in the filesystem starting from @startino. */
typedef int (*xfs_inobt_walk_fn)(struct xfs_mount *mp, struct xfs_trans *tp,