block: simplify part_to_disk
authorChristoph Hellwig <hch@lst.de>
Mon, 23 Nov 2020 15:38:15 +0000 (16:38 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 1 Dec 2020 21:53:40 +0000 (14:53 -0700)
commitc64dc3bd87097e7f08b9437819440f8bfddef995
treec73cc15e2ae2c2d7a6141607e7d3c3d8f68dd667
parent37c3fc9abb25cd767ad5b048358336ac89488c16
block: simplify part_to_disk

Now that struct hd_struct has a block_device pointer use that to
find the disk.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/genhd.h