aboutsummaryrefslogtreecommitdiff
path: root/fs/xfs/libxfs/xfs_btree.h
diff options
context:
space:
mode:
authorGravatar Christoph Hellwig <hch@lst.de> 2024-02-22 12:39:47 -0800
committerGravatar Darrick J. Wong <djwong@kernel.org> 2024-02-22 12:39:47 -0800
commit7f47734ad61af77a001b1e24691dcbfcb008c938 (patch)
tree971552db96681a727f68a3025a27b858491e88fc /fs/xfs/libxfs/xfs_btree.h
parentxfs: add a name field to struct xfs_btree_ops (diff)
downloadlinux-7f47734ad61af77a001b1e24691dcbfcb008c938.tar.gz
linux-7f47734ad61af77a001b1e24691dcbfcb008c938.tar.bz2
linux-7f47734ad61af77a001b1e24691dcbfcb008c938.zip
xfs: add a sick_mask to struct xfs_btree_ops
Clean up xfs_btree_mark_sick by adding a sick_mask to the btree-ops for all AG-root btrees. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Darrick J. Wong <djwong@kernel.org> Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Diffstat (limited to 'fs/xfs/libxfs/xfs_btree.h')
-rw-r--r--fs/xfs/libxfs/xfs_btree.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/xfs/libxfs/xfs_btree.h b/fs/xfs/libxfs/xfs_btree.h
index 6bc6096205b3..6e5fd0c06453 100644
--- a/fs/xfs/libxfs/xfs_btree.h
+++ b/fs/xfs/libxfs/xfs_btree.h
@@ -142,6 +142,9 @@ struct xfs_btree_ops {
/* offset of btree stats array */
unsigned int statoff;
+ /* sick mask for health reporting (only for XFS_BTREE_TYPE_AG) */
+ unsigned int sick_mask;
+
/* cursor operations */
struct xfs_btree_cur *(*dup_cursor)(struct xfs_btree_cur *);
void (*update_cursor)(struct xfs_btree_cur *src,