]> git.baikalelectronics.ru Git - kernel.git/commit
block: pass a block_device and opf to bio_reset
authorChristoph Hellwig <hch@lst.de>
Mon, 24 Jan 2022 09:11:07 +0000 (10:11 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 2 Feb 2022 14:50:00 +0000 (07:50 -0700)
commit8509b26447aa73636800cddafad2c12b5165c00e
tree23d5c1747a3e31bf57247e999e9305eae164e7ba
parent839e041d3504d43f47beb4ccc78a5f197851f1f2
block: pass a block_device and opf to bio_reset

Pass the block_device that we plan to use this bio for and the
operation to bio_reset to optimize the assigment.  A NULL block_device
can be passed, both for the passthrough case on a raw request_queue and
to temporarily avoid refactoring some nasty code.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Link: https://lore.kernel.org/r/20220124091107.642561-20-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bio.c
drivers/block/pktcdvd.c
drivers/md/bcache/journal.c
drivers/md/bcache/request.c
drivers/md/raid1.c
drivers/md/raid10.c
drivers/md/raid5-cache.c
drivers/md/raid5.c
fs/btrfs/disk-io.c
fs/crypto/bio.c
include/linux/bio.h