]> www.infradead.org Git - users/dwmw2/linux.git/commit
xfs: convert busy extent tracking to the generic group structure
authorChristoph Hellwig <hch@lst.de>
Mon, 4 Nov 2024 04:18:43 +0000 (20:18 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 5 Nov 2024 21:38:29 +0000 (13:38 -0800)
commitadbc76aa0fedcb6da2d1ceb1ce786d1f963afee8
tree2fcfa5a59412da321f284e7f0e54cb25b56ab38f
parent0e10cb98f149aa62b381a81b09c479661149a0b2
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>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
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