diff options
author | Darrick J. Wong <djwong@kernel.org> | 2021-09-01 11:25:04 -0700 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2021-10-22 16:41:14 -0700 |
commit | 1804f4671b76293a8a792e5be4e514cefc0f012f (patch) | |
tree | 062530b0c112f68993d01f16bb3924694a9aa23c /fs/xfs/xfs_ioctl.c | |
parent | 915ba3fc67b271562c27451c55e28cfd72efde3c (diff) |
xfs: experiment with dontcache when scanning inodesvectorized-scrub_2021-10-22
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_ioctl.c')
-rw-r--r-- | fs/xfs/xfs_ioctl.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/xfs/xfs_ioctl.c b/fs/xfs/xfs_ioctl.c index 97ccc69a3bf4..fb94301dbc85 100644 --- a/fs/xfs/xfs_ioctl.c +++ b/fs/xfs/xfs_ioctl.c @@ -897,6 +897,9 @@ xfs_bulk_ireq_setup( if (hdr->flags & XFS_BULK_IREQ_METADIR) breq->flags |= XFS_IWALK_METADIR; + if (hdr->flags & XFS_BULK_IREQ_RETAIN_INODES) + breq->flags |= XFS_IWALK_RETAIN_INODES; + return 0; } |