block: move the call to get_max_io_size out of blk_bio_segment_split
authorChristoph Hellwig <hch@lst.de>
Wed, 27 Jul 2022 16:22:58 +0000 (12:22 -0400)
committerJens Axboe <axboe@kernel.dk>
Wed, 27 Jul 2022 16:27:58 +0000 (10:27 -0600)
commit0ef1e5aa4337e291e9fe590e01e1da3021be6743
treeb6cf1968efd52f2f816c65f60d5f1020392af1c5
parent1be3479b85330141b54a102903e5f07948362695
block: move the call to get_max_io_size out of blk_bio_segment_split

Prepare for reusing blk_bio_segment_split for (file system controlled)
splits of REQ_OP_ZONE_APPEND bios by letting the caller control the
maximum size of the bio.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Link: https://lore.kernel.org/r/20220727162300.3089193-5-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-merge.c