]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
block: pass a maxlen argument to bio_iov_iter_bounce
authorChristoph Hellwig <hch@lst.de>
Mon, 23 Feb 2026 13:20:07 +0000 (05:20 -0800)
committerJens Axboe <axboe@kernel.dk>
Mon, 9 Mar 2026 13:47:02 +0000 (07:47 -0600)
commita9aa6045abde87b94168c3ba034b953417e27272
treedb144d7cee2014d8886ee5fce2db90d7b4ff2318
parent0bde8a12b5540572a7fd6d2867bee6de15e4f289
block: pass a maxlen argument to bio_iov_iter_bounce

Allow the file system to limit the size processed in a single
bounce operation.  This is needed when generating integrity data
so that the size of a single integrity segment can't overflow.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Anuj Gupta <anuj20.g@samsung.com>
Reviewed-by: Kanchan Joshi <joshi.k@samsung.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Tested-by: Anuj Gupta <anuj20.g@samsung.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bio.c
fs/iomap/direct-io.c
include/linux/bio.h