block: factor out blk_rq_map_bio_alloc helper
authorKanchan Joshi <joshi.k@samsung.com>
Fri, 30 Sep 2022 06:27:46 +0000 (11:57 +0530)
committerJens Axboe <axboe@kernel.dk>
Fri, 30 Sep 2022 13:51:13 +0000 (07:51 -0600)
commitab89e8e7ca526ca04baaad2aa28172d336425d67
tree57fb231e3744a1de3d39956eed0ff269af3aff0a
parent32f1c71b15fc9cb8e964c3d0c15ca99a70cfe8a7
block: factor out blk_rq_map_bio_alloc helper

Move bio allocation logic from bio_map_user_iov to a new helper
blk_rq_map_bio_alloc. It is named so because functionality is opposite
of what is done inside blk_mq_map_bio_put. This is a prep patch.

Signed-off-by: Kanchan Joshi <joshi.k@samsung.com>
Link: https://lore.kernel.org/r/20220930062749.152261-10-anuj20.g@samsung.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-map.c