]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0d5f504f513d22c8f416596f15a5660a3d12c375
tree12b6b9dbb5d5f2b52588583cfc53d63b3ebf6048
parent4c5c15b17c6fcbd52189bcf1795012ff71e6ec56
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