]> www.infradead.org Git - users/hch/misc.git/commit
iomap: add a IOMAP_F_ANON_WRITE flag
authorChristoph Hellwig <hch@lst.de>
Sun, 5 Nov 2023 05:40:52 +0000 (06:40 +0100)
committerChristoph Hellwig <hch@lst.de>
Mon, 3 Feb 2025 09:18:38 +0000 (10:18 +0100)
commite3ecad5bf9ce923fc84dcda5072c30b2990e531e
treec597de2f530c5fd216d57aedfec8cc3d0fb62fbf
parent914f263f01fe50b8ce761d8c286874b241458b0c
iomap: add a IOMAP_F_ANON_WRITE flag

Add a IOMAP_F_ANON_WRITE flag that indicates that the write I/O does not
have a target block assigned to it yet at iomap time and the file system
will do that in the bio submission handler, splitting the I/O as needed.

This is used to implement Zone Append based I/O for zoned XFS, where
splitting writes to the hardware limits and assigning a zone to them
happens just before sending the I/O off to the block layer, but could
also be useful for other things like compressed I/O.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Documentation/filesystems/iomap/design.rst
fs/iomap/buffered-io.c
fs/iomap/direct-io.c
include/linux/iomap.h