]> www.infradead.org Git - users/hch/misc.git/commit
block: pass a max_bio_size argument to bio_iov_iter_get_pages
authorChristoph Hellwig <hch@lst.de>
Mon, 18 Aug 2025 16:13:39 +0000 (18:13 +0200)
committerChristoph Hellwig <hch@lst.de>
Tue, 2 Sep 2025 06:40:59 +0000 (08:40 +0200)
commit185e4d30cb6c33131428ee87dddc77590a6d1ccd
treebd6dfbef4feae00b17d969e3c6e2936cdf32e61b
parent79c71487d42de9de459b5030bf0a94aa38fcd71f
block: pass a max_bio_size argument to bio_iov_iter_get_pages

Integrity buffer sizing is based on the total amount of blocks
written, which can get enormous with huge folios.  Allow the file system
to tell bio_iov_iter_get_pages to never build bios beyond a given size
limit so that it can always allocate an integrity buffer.

Signed-off-by: Christoph Hellwig <hch@lst.de>
block/bio.c
block/blk-map.c
block/fops.c
fs/bcachefs/fs-io-direct.c
fs/iomap/direct-io.c
include/linux/bio.h