]> www.infradead.org Git - users/hch/xfs.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 04:49:03 +0000 (05:49 +0100)
commitf94e68095204e57ed935fe1d530eece51495d77c
tree0f36b87f6f245e9db44475c49b0996cf1d3f2518
parent6fa791a097a2471306010256d342775ddaf7341c
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