]> git.ipfire.org Git - thirdparty/linux.git/commit
iomap: add a flag to bounce buffer direct I/O
authorChristoph Hellwig <hch@lst.de>
Mon, 26 Jan 2026 05:53:45 +0000 (06:53 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 28 Jan 2026 12:16:40 +0000 (05:16 -0700)
commitc9d114846b380fec1093b7bca91ee5a8cd7b575d
treec2585cf03c98cb4747c3a0d89a65adf1631c0afb
parentd969bd72cf6835a4c915b326feb92c7597a46d98
iomap: add a flag to bounce buffer direct I/O

Add a new flag that request bounce buffering for direct I/O.  This is
needed to provide the stable pages requirement requested by devices
that need to calculate checksums or parity over the data and allows
file systems to properly work with things like T10 protection
information.  The implementation just calls out to the new bio bounce
buffering helpers to allocate a bounce buffer, which is used for
I/O and to copy to/from it.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Tested-by: Anuj Gupta <anuj20.g@samsung.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/iomap/direct-io.c
include/linux/iomap.h