summaryrefslogtreecommitdiff
path: root/fs/xfs/scrub/trace.h
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2024-02-22 23:31:00 +0300
committerDarrick J. Wong <djwong@kernel.org>2024-02-22 23:31:00 +0300
commit6b631c60c90a1e5264bc9bcdca2c0adb492d7a62 (patch)
treeb61d8133340b4bf40345579e24bc8d5a13a45f87 /fs/xfs/scrub/trace.h
parent86a1746eea91c6db983e6ccd3f846708746e47c2 (diff)
downloadlinux-6b631c60c90a1e5264bc9bcdca2c0adb492d7a62.tar.xz
xfs: teach repair to fix file nlinks
Fix the file link counts since we just computed the correct ones. Signed-off-by: Darrick J. Wong <djwong@kernel.org> Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/xfs/scrub/trace.h')
-rw-r--r--fs/xfs/scrub/trace.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/xfs/scrub/trace.h b/fs/xfs/scrub/trace.h
index 9512170ea9a7..c9b6b0e0bf11 100644
--- a/fs/xfs/scrub/trace.h
+++ b/fs/xfs/scrub/trace.h
@@ -2185,6 +2185,9 @@ DEFINE_XREP_DQUOT_EVENT(xrep_dquot_item_fill_bmap_hole);
DEFINE_XREP_DQUOT_EVENT(xrep_quotacheck_dquot);
#endif /* CONFIG_XFS_QUOTA */
+DEFINE_SCRUB_NLINKS_DIFF_EVENT(xrep_nlinks_update_inode);
+DEFINE_SCRUB_NLINKS_DIFF_EVENT(xrep_nlinks_unfixable_inode);
+
#endif /* IS_ENABLED(CONFIG_XFS_ONLINE_REPAIR) */
#endif /* _TRACE_XFS_SCRUB_TRACE_H */