]> www.infradead.org Git - users/hch/block.git/commit
block: pass a block_device and opf to bio_reset bio_alloc-cleanup-part1
authorChristoph Hellwig <hch@lst.de>
Fri, 14 Jan 2022 08:11:53 +0000 (09:11 +0100)
committerChristoph Hellwig <hch@lst.de>
Mon, 24 Jan 2022 09:07:58 +0000 (10:07 +0100)
commit2c88d335881b121bec073084d90d0cccf4b8d6a7
treec068add5b605566d584efa892c70754ce80a1b18
parent00a6d8b7f5d2f2e88316d7c6001f8b28865a3305
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>
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