]> www.infradead.org Git - users/hch/block.git/commit
dm: use bio_clone_fast in alloc_io/alloc_tio
authorChristoph Hellwig <hch@lst.de>
Wed, 2 Feb 2022 15:16:57 +0000 (16:16 +0100)
committerChristoph Hellwig <hch@lst.de>
Wed, 2 Feb 2022 15:17:47 +0000 (16:17 +0100)
commit259442b781dd0c1c60ff9a1d6182992d1383e787
tree3f7ef208932d02acaef7f356972c026cdc287e0e
parentb71918b0e73ac192e36d01c315e4063027048437
dm: use bio_clone_fast in alloc_io/alloc_tio

Replace open coded bio_clone_fast implementations with the actual helper.
Note that the bio allocated as part of the dm_io structure in alloc_io
will only actually be used later in alloc_tio, making this earlier
cloning of the information safe.

Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/md/dm.c