]> www.infradead.org Git - users/dwmw2/linux.git/commit
iomap: add a IOMAP_F_ANON_WRITE flag
authorChristoph Hellwig <hch@lst.de>
Thu, 6 Feb 2025 06:40:01 +0000 (07:40 +0100)
committerChristian Brauner <brauner@kernel.org>
Thu, 6 Feb 2025 12:02:13 +0000 (13:02 +0100)
commit034c29fb3e7c119c42e650986e280f025a1bec7b
treebf866e42d38a7b945f5aca4b421604e6c454b6cf
parent710273330663241d9ca5fbed51909e65807556ad
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>
Link: https://lore.kernel.org/r/20250206064035.2323428-4-hch@lst.de
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Documentation/filesystems/iomap/design.rst
fs/iomap/buffered-io.c
fs/iomap/direct-io.c
include/linux/iomap.h