[Drbd-dev] [RFC PATCH 22/37] dm-crypt: use bio_init_fields
Chaitanya Kulkarni
chaitanya.kulkarni at wdc.com
Tue Jan 19 06:06:16 CET 2021
Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni at wdc.com>
---
drivers/md/dm-crypt.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/md/dm-crypt.c b/drivers/md/dm-crypt.c
index 53791138d78b..b03dbcbff491 100644
--- a/drivers/md/dm-crypt.c
+++ b/drivers/md/dm-crypt.c
@@ -1764,9 +1764,7 @@ static void clone_init(struct dm_crypt_io *io, struct bio *clone)
{
struct crypt_config *cc = io->cc;
- clone->bi_private = io;
- clone->bi_end_io = crypt_endio;
- bio_set_dev(clone, cc->dev->bdev);
+ bio_init_fields(clone, cc->dev->bdev, 0, io, crypt_endio, 0, 0);
clone->bi_opf = io->base_bio->bi_opf;
}
--
2.22.1
More information about the drbd-dev
mailing list