diff options
author | Darrick J. Wong <djwong@kernel.org> | 2024-02-22 12:33:04 -0800 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2024-02-22 12:33:04 -0800 |
commit | a1f3e0cca41036c3c66abb6a2ed8fedc214e9a4c (patch) | |
tree | 3dfc69e8562e3dde1ef03791b1172cc8790c9817 /fs/xfs/scrub/health.h | |
parent | 0e24ec3c56fbc797b34fc94073320c336336b4f9 (diff) | |
download | linux-a1f3e0cca41036c3c66abb6a2ed8fedc214e9a4c.tar.gz linux-a1f3e0cca41036c3c66abb6a2ed8fedc214e9a4c.tar.bz2 linux-a1f3e0cca41036c3c66abb6a2ed8fedc214e9a4c.zip |
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>
Diffstat (limited to 'fs/xfs/scrub/health.h')
-rw-r--r-- | fs/xfs/scrub/health.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/xfs/scrub/health.h b/fs/xfs/scrub/health.h index a731b2467399..06d17941776c 100644 --- a/fs/xfs/scrub/health.h +++ b/fs/xfs/scrub/health.h @@ -12,5 +12,6 @@ bool xchk_ag_btree_healthy_enough(struct xfs_scrub *sc, struct xfs_perag *pag, xfs_btnum_t btnum); void xchk_mark_healthy_if_clean(struct xfs_scrub *sc, unsigned int mask); bool xchk_file_looks_zapped(struct xfs_scrub *sc, unsigned int mask); +int xchk_health_record(struct xfs_scrub *sc); #endif /* __XFS_SCRUB_HEALTH_H__ */ |