]> git.ipfire.org Git - people/ms/linux.git/commit - block/bio.c
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)
commita7c50c940477bae89fb2b4f51bd969a2d95d7512
tree23d5c1747a3e31bf57247e999e9305eae164e7ba
parent49add4966d79244013fce35f95c6833fae82b8b1
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