]> www.infradead.org Git - users/hch/block.git/commit
block: simplify part_to_disk
authorChristoph Hellwig <hch@lst.de>
Mon, 23 Nov 2020 15:38:15 +0000 (16:38 +0100)
committerChristoph Hellwig <hch@lst.de>
Tue, 1 Dec 2020 08:07:57 +0000 (09:07 +0100)
commit76b0d5367d51d9b937810dd4fc7c56c926a9f98b
tree1322b10b0d18fa08c57f05565b18c2033c62b8e8
parent4518478ddd4299d06d07b0f6c04c9c1a9803cef8
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>
include/linux/genhd.h