block: pass a block_device to invalidate_partition
authorChristoph Hellwig <hch@lst.de>
Tue, 24 Nov 2020 08:20:37 +0000 (09:20 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 1 Dec 2020 21:53:40 +0000 (14:53 -0700)
commit71773cf797490e1cbe4909b25a2543937e7eea82
tree6879e455d2ca905f02af79dd7b4e6e3a45cb2107
parent9fc995a6e08349b5c5baff2cc31544b96ee2b1c3
block: pass a block_device to invalidate_partition

Pass the block_device actually needed instead of looking it up using
bdget_disk.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/genhd.c