]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
xfs: separate the marking of sick and checked metadata
authorDarrick J. Wong <djwong@kernel.org>
Thu, 22 Feb 2024 20:31:01 +0000 (12:31 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 22 Feb 2024 20:31:01 +0000 (12:31 -0800)
commit0b8686f19879d896bbe2d3e893f433a08160452d
treeea6a6f8747fb06a2619b940be182ffa5ddb75bdf
parent6b631c60c90a1e5264bc9bcdca2c0adb492d7a62
xfs: separate the marking of sick and checked metadata

Split the setting of the sick and checked masks into separate functions
as part of preparing to add the ability for regular runtime fs code
(i.e. not scrub) to mark metadata structures sick when corruptions are
found.  Improve the documentation of libxfs' requirements for helper
behavior.

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