block: switch disk_part_iter_* to use a struct block_device
authorChristoph Hellwig <hch@lst.de>
Tue, 24 Nov 2020 08:52:59 +0000 (09:52 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 1 Dec 2020 21:53:40 +0000 (14:53 -0700)
commitad1eaa5344b293552b6ba43f5709c76a9aa14d17
treecb711254c057aaa967bb392a53ad0a6eb00072cc
parent71773cf797490e1cbe4909b25a2543937e7eea82
block: switch disk_part_iter_* to use a struct block_device

Switch the partition iter infrastructure to iterate over block_device
references instead of hd_struct ones mostly used to get at the
block_device.

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
block/partitions/core.c
drivers/s390/block/dasd.c
include/linux/genhd.h