block: pass a block_device and opf to bio_alloc_kiocb
authorChristoph Hellwig <hch@lst.de>
Mon, 24 Jan 2022 09:11:04 +0000 (10:11 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 2 Feb 2022 14:49:59 +0000 (07:49 -0700)
commitb77c88c2100ce6a5ec8126c13599b5a7f6663e32
treed640ab19bd3e2b3cd8ab50c6a86ef5b2e6bf474f
parent609be1066731fea86436f5f91022f82e592ab456
block: pass a block_device and opf to bio_alloc_kiocb

Pass the block_device and operation that we plan to use this bio for to
bio_alloc_kiocb to optimize the assigment.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Link: https://lore.kernel.org/r/20220124091107.642561-17-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bio.c
block/fops.c
include/linux/bio.h