xfs: split the agf_roots and agf_levels arrays
authorChristoph Hellwig <hch@lst.de>
Thu, 22 Feb 2024 20:39:46 +0000 (12:39 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 22 Feb 2024 20:39:46 +0000 (12:39 -0800)
commite45ea3645178c6db91aef4314945b05e4c6ee1fc
tree4e2f1297e4300b060ceeacef838f250ebc7481ef
parent02f7ebf5f99c3776bbf048786885eeafeb2f21ca
xfs: split the agf_roots and agf_levels arrays

Using arrays of largely unrelated fields that use the btree number
as index is not very robust.  Split the arrays into three separate
fields instead.

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>
fs/xfs/libxfs/xfs_ag.c
fs/xfs/libxfs/xfs_ag.h
fs/xfs/libxfs/xfs_alloc.c
fs/xfs/libxfs/xfs_alloc_btree.c
fs/xfs/libxfs/xfs_format.h
fs/xfs/libxfs/xfs_rmap_btree.c
fs/xfs/scrub/agheader.c
fs/xfs/scrub/agheader_repair.c
fs/xfs/scrub/alloc_repair.c
fs/xfs/xfs_trace.h