]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xfs: trigger zone GC when out of available rt blocks
authorHans Holmberg <Hans.Holmberg@wdc.com>
Mon, 10 Mar 2025 13:39:59 +0000 (13:39 +0000)
committerCarlos Maiolino <cem@kernel.org>
Tue, 11 Mar 2025 11:52:27 +0000 (12:52 +0100)
commitb7bc85480b03765a7993262f2c333628c36fbc45
treea5a1989088f800d6fffbb8a27d3f5c6f3d15e937
parent4c6283ec9284bb72906dba83bc7a809747e6331e
xfs: trigger zone GC when out of available rt blocks

We periodically check the available rt blocks when filling up zones
and start GC if needed, but we may run completely out in between
filling zones, so start GC(unless already running) if we can't reserve
writable space.

This should only happen as a corner case in setups with very few
backing zones.

Fixes: 080d01c41d44 ("xfs: implement zoned garbage collection")
Signed-off-by: Hans Holmberg <hans.holmberg@wdc.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
fs/xfs/xfs_zone_space_resv.c