]> www.infradead.org Git - users/hch/xfs.git/commit
xfs: convert busy extent tracking to the generic group structure
authorChristoph Hellwig <hch@lst.de>
Fri, 20 Sep 2024 13:40:57 +0000 (15:40 +0200)
committerChristoph Hellwig <hch@lst.de>
Sun, 22 Sep 2024 05:37:32 +0000 (07:37 +0200)
commit505fbb7da07c9456858ff0a5eb04403f65a4885b
treebfac38a82befbbb8527e3290cfc67b7e31e196ea
parent324e88454dd4766b2a96cd4ed2e67c5736e8d731
xfs: convert busy extent tracking to the generic group structure

Split busy extent tracking from struct xfs_perag into its own private
structure, which can be pointed to by the generic group structure.

Note that this structure is now dynamically allocated instead of embedded
as the upcoming zone XFS code doesn't need it and will also have an
unusually high number of groups due to hardware constraints.  Dynamically
allocating the structure this is a big memory saver for this case.

Signed-off-by: Christoph Hellwig <hch@lst.de>
12 files changed:
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_group.c
fs/xfs/libxfs/xfs_group.h
fs/xfs/libxfs/xfs_rmap_btree.c
fs/xfs/scrub/alloc_repair.c
fs/xfs/scrub/reap.c
fs/xfs/xfs_discard.c
fs/xfs/xfs_extent_busy.c
fs/xfs/xfs_extent_busy.h