diff options
author | Christoph Hellwig <hch@lst.de> | 2024-02-22 12:39:48 -0800 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2024-02-22 12:39:48 -0800 |
commit | 48039926197522f32b548731a3b94331f0551bdc (patch) | |
tree | bdc0dada88407107606d76dc57bf8858f57522a8 /fs/xfs/libxfs/xfs_alloc_btree.c | |
parent | 7f47734ad61af77a001b1e24691dcbfcb008c938 (diff) |
xfs: refactor the btree cursor allocation logic in xchk_ag_btcur_init
Change xchk_ag_btcur_init to allocate all cursors first and only then
check if we should delete them again because the btree is to damaged.
This allows reusing the sick_mask in struct xfs_btree_ops and simplifies
the code.
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_alloc_btree.c')
0 files changed, 0 insertions, 0 deletions