]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfsprogs-dev.git/commitdiff
xfs: convey filesystem unmount events to the health monitor
authorDarrick J. Wong <djwong@kernel.org>
Sun, 22 Feb 2026 22:41:03 +0000 (14:41 -0800)
committerAndrey Albershteyn <aalbersh@kernel.org>
Wed, 8 Apr 2026 19:39:56 +0000 (21:39 +0200)
Source kernel commit: 25ca57fa3624cae9c6b5c6d3fc7f38318ca1402e

In xfs_healthmon_unmount, send events to xfs_healer so that it knows
that nothing further can be done for the filesystem.

Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
libxfs/xfs_fs.h

index 22b86bc888de5ac274163252417b249a1aba12b0..59de6ab69fb31925ed92e2c8a9cfc842b8490777 100644 (file)
@@ -1014,6 +1014,9 @@ struct xfs_rtgroup_geometry {
 #define XFS_HEALTH_MONITOR_TYPE_RUNNING                (0)
 #define XFS_HEALTH_MONITOR_TYPE_LOST           (1)
 
+/* filesystem was unmounted */
+#define XFS_HEALTH_MONITOR_TYPE_UNMOUNT                (2)
+
 /* lost events */
 struct xfs_health_monitor_lost {
        __u64   count;