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, 3 Aug 2022 03:08:53 +0000 (21:08 -0600)
commita85b36375b05f70301f15cafb9030cae7c789f76
tree12b6b9dbb5d5f2b52588583cfc53d63b3ebf6048
parent46754bd056053785d7079f1d48f7f571728dcb47
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