xfs: add secondary and indirect classes to the health tracking system
authorDarrick J. Wong <djwong@kernel.org>
Thu, 22 Feb 2024 20:33:03 +0000 (12:33 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 22 Feb 2024 20:33:03 +0000 (12:33 -0800)
commit4e587917ee1cc28ac3a04cd55937419b9e65d81d
tree03eb32d1ed3462c6fe7a90c7f7ddc52ab33ea0ca
parent989d5ec3175be7c0012d7744c667ae6a266fab06
xfs: add secondary and indirect classes to the health tracking system

Establish two more classes of health tracking bits:

 * Indirect problems, which suggest problems in other health domains
   that we weren't able to preserve.

 * Secondary problems, which track state that's related to primary
   evidence of health problems; and

The first class we'll use in an upcoming patch to record in the AG
health status the fact that we ran out of memory and had to inactivate
an inode with defective metadata.  The second class we use to indicate
that repair knows that an inode is bad and we need to fix it later.

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