]> git.baikalelectronics.ru Git - kernel.git/commit
dm: move cloning the bio into alloc_tio
authorChristoph Hellwig <hch@lst.de>
Wed, 2 Feb 2022 16:01:01 +0000 (17:01 +0100)
committerJens Axboe <axboe@kernel.dk>
Fri, 4 Feb 2022 14:43:17 +0000 (07:43 -0700)
commitf2e5f85a70d2d8b5f84e105557e6e8a1b9d25af8
tree63a92b35d171d57a5ca5f2e2051adcf790da73c8
parentee2955192e9282ae5bb23b5ffb77136211f74984
dm: move cloning the bio into alloc_tio

Move the call to __bio_clone_fast and the assignment of ->len_ptr from
the callers into alloc_tio to prepare for changes to the bio clone API.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Mike Snitzer <snitzer@redhat.com>
Link: https://lore.kernel.org/r/20220202160109.108149-6-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/dm.c