]> www.infradead.org Git - users/hch/xfs.git/commit
xfs: delayed block allocation xfs-zoned-2024-21-07
authorChristoph Hellwig <hch@lst.de>
Thu, 17 Oct 2024 05:50:06 +0000 (07:50 +0200)
committerChristoph Hellwig <hch@lst.de>
Sun, 3 Nov 2024 05:05:49 +0000 (06:05 +0100)
commitbdd2e8eca7805ce39b762a49098e4852c59b6f1f
treef37c310c572cc9c7b1d03316962521ddf642e74d
parent3e3580acf2506765a8fbd31a21a10538899fab27
xfs: delayed block allocation

There is no need to assign a zone util we submit the bio using it.
Assigning a zone earlier and incrementing the write pointer just means
we us up zone active resources longer than required.  So instead of
allocating the block in the iomap_begin and map_blocks methods, just
provide stub iomaps there, and then allocate the blocks just before
submitting the bios, which also fits in really nicely with the flow
to split the bios to the hardware limits.

Based on a really old recommendation from Damien.

Signed-off-by: Christoph Hellwig <hch@lst.de>
fs/iomap/ioend.c
fs/xfs/xfs_aops.c
fs/xfs/xfs_aops.h
fs/xfs/xfs_file.c
fs/xfs/xfs_iomap.c
fs/xfs/xfs_trace.h
fs/xfs/xfs_zone_alloc.c
fs/xfs/xfs_zone_alloc.h
include/linux/iomap.h