]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1531d9425aedc915af99b2dff113a41da2918fff
treed640ab19bd3e2b3cd8ab50c6a86ef5b2e6bf474f
parent9ecaf0ee9a8fb7da3f74d797b0d6dc31cf293c45
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