summaryrefslogtreecommitdiff
path: root/fs/xfs/libxfs
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2021-09-01 11:25:16 -0700
committerDarrick J. Wong <djwong@kernel.org>2021-10-22 16:41:14 -0700
commitaa7bbb4df5d4f26f134b67f7a4218a2c7a116d50 (patch)
treed81b793c3bf5840db2a0bb7b52f051b354a453f7 /fs/xfs/libxfs
parenta96548dece0c260f61a0007e7f45ae968802b8c6 (diff)
xfs: teach scrub to check file nlinks
Copy-pasta the online quotacheck code to check inode link counts too. Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Diffstat (limited to 'fs/xfs/libxfs')
-rw-r--r--fs/xfs/libxfs/xfs_fs.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/xfs/libxfs/xfs_fs.h b/fs/xfs/libxfs/xfs_fs.h
index 0f101a190b52..c0a42019f8f5 100644
--- a/fs/xfs/libxfs/xfs_fs.h
+++ b/fs/xfs/libxfs/xfs_fs.h
@@ -744,9 +744,10 @@ struct xfs_scrub_metadata {
#define XFS_SCRUB_TYPE_HEALTHY 26 /* everything checked out ok */
#define XFS_SCRUB_TYPE_RTRMAPBT 27 /* realtime reverse mapping btree */
#define XFS_SCRUB_TYPE_RTREFCBT 28 /* realtime reference count btree */
+#define XFS_SCRUB_TYPE_NLINKS 29 /* inode link counts */
/* Number of scrub subcommands. */
-#define XFS_SCRUB_TYPE_NR 29
+#define XFS_SCRUB_TYPE_NR 30
/*
* This special type code only applies to the vectored scrub implementation.