xfs: update health status if we get a clean bill of health
authorDarrick J. Wong <djwong@kernel.org>
Thu, 22 Feb 2024 20:33:04 +0000 (12:33 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 22 Feb 2024 20:33:04 +0000 (12:33 -0800)
commita1f3e0cca41036c3c66abb6a2ed8fedc214e9a4c
tree3dfc69e8562e3dde1ef03791b1172cc8790c9817
parent0e24ec3c56fbc797b34fc94073320c336336b4f9
xfs: update health status if we get a clean bill of health

If scrub finds that everything is ok with the filesystem, we need a way
to tell the health tracking that it can let go of indirect health flags,
since indirect flags only mean that at some point in the past we lost
some context.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/libxfs/xfs_fs.h
fs/xfs/scrub/health.c
fs/xfs/scrub/health.h
fs/xfs/scrub/repair.c
fs/xfs/scrub/scrub.c
fs/xfs/scrub/trace.h