]> 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)
commit4603edb7cb22d95756f143f95b242967ce2e10e9
tree63a92b35d171d57a5ca5f2e2051adcf790da73c8
parente86d21d248a5037235c3ba6e9703185c4e56e63c
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