]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
block: pass a minsize argument to bio_iov_iter_bounce
authorChristoph Hellwig <hch@lst.de>
Thu, 7 May 2026 05:01:47 +0000 (07:01 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 13 May 2026 19:55:06 +0000 (13:55 -0600)
commit32d5019ed3b6ff4439cb075fb275f655c8a2059c
tree264587a8d6faba599febb433730cc00e9f01aec1
parent87d0740b7c4cc847be1b6f307ab6d8547cb1a726
block: pass a minsize argument to bio_iov_iter_bounce

When bouncing for block size > PAGE_SIZE file systems that require
file system block size alignment (e.g. zoned XFS), the bio needs to
be big enough to fit an entire block.

Fixes: 8dd5e7c75d7b ("block: add helpers to bounce buffer an iov_iter into bios")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@kernel.org>
Link: https://patch.msgid.link/20260507050153.1298375-2-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bio.c
fs/iomap/direct-io.c
include/linux/bio.h