]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitaf85cc4185292d5410a273b72e77b448e34b324e
tree73199ba171242e851210ed52ec5610d8bf4ce45a
parent9ad8d40209374d6b4dad904fdc85a2884a72d099
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