]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
xfs: kick off inodegc when failing to reserve zoned blocks
authorChristoph Hellwig <hch@lst.de>
Mon, 18 Aug 2025 05:06:44 +0000 (07:06 +0200)
committerCarlos Maiolino <cem@kernel.org>
Tue, 19 Aug 2025 12:37:07 +0000 (14:37 +0200)
commit7d523255f524c95208cefef4edaed149615ff96c
tree534320ceb59d0df5171b973227e9275bfff4db02
parentd004d70d6cdf03928da0d05c8c15c2ccc15657cd
xfs: kick off inodegc when failing to reserve zoned blocks

XFS processes truncating unlinked inodes asynchronously and thus the free
space pool only sees them with a delay.  The non-zoned write path thus
calls into inodegc to accelerate this processing before failing an
allocation due the lack of free blocks.  Do the same for the zoned space
reservation.

Fixes: 0bb2193056b5 ("xfs: add support for zoned space reservations")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hans Holmberg <hans.holmberg@wdc.com>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
fs/xfs/xfs_zone_space_resv.c