dm-crypt: remove clone_init
authorChristoph Hellwig <hch@lst.de>
Mon, 24 Jan 2022 09:10:54 +0000 (10:10 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 2 Feb 2022 14:49:59 +0000 (07:49 -0700)
commit3f868c09ea8f40f800c4c644c072d91c9eee0d71
tree73199ba171242e851210ed52ec5610d8bf4ce45a
parent53db984e004c7116ce69e2f4a163664453336ae1
dm-crypt: remove clone_init

Just open code it next to the bio allocations, which saves a few lines
of code, prepares for future changes and allows to remove the duplicate
bi_opf assignment for the bio_clone_fast case in kcryptd_io_read.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20220124091107.642561-7-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/dm-crypt.c