summaryrefslogtreecommitdiff
path: root/fs/xfs/xfs_iwalk.h
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2021-09-01 11:15:38 -0700
committerDarrick J. Wong <djwong@kernel.org>2021-10-22 16:40:51 -0700
commit8dc87755bc86b635b9e8b635cd26c3f4d6f1087b (patch)
tree89cc0e5c8e9c67bc3b7e8c523b08fba300677235 /fs/xfs/xfs_iwalk.h
parentcd2822198dfe5b6f119d7900bc0307a387e253d6 (diff)
xfs: allow bulkstat to return metadata directories
Allow the V5 bulkstat ioctl to return information about metadata directory files so that xfs_scrub can find and scrub them, since they are otherwise ordinary directories. (Metadata files of course require per-file scrub code and hence do not need exposure.) 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 37a795f03267..d7a082e45cbf 100644
--- a/fs/xfs/xfs_iwalk.h
+++ b/fs/xfs/xfs_iwalk.h
@@ -28,7 +28,11 @@ int xfs_iwalk_threaded(struct xfs_mount *mp, xfs_ino_t startino,
/* Only iterate inodes within the same AG as @startino. */
#define XFS_IWALK_SAME_AG (0x1)
-#define XFS_IWALK_FLAGS_ALL (XFS_IWALK_SAME_AG)
+/* Signal that we can return metadata directories. */
+#define XFS_IWALK_METADIR (0x2)
+
+#define XFS_IWALK_FLAGS_ALL (XFS_IWALK_SAME_AG | \
+ XFS_IWALK_METADIR)
/* 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,