]> 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)
commit0705cc3924f9d1fa3ca8c0597e5e4dcd8ede4a2e
tree23d5c1747a3e31bf57247e999e9305eae164e7ba
parent03bcde6d34317605c2fb35c53ad05803576475a3
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