block: remove the partno field from struct hd_struct

Just use the bd_partno field in struct block_device everywhere.

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>
This commit is contained in:
Christoph Hellwig
2020-11-24 09:37:14 +01:00
committed by Jens Axboe
parent 8446fe9255
commit 41e5c81984
4 changed files with 11 additions and 13 deletions
+1 -1
View File
@@ -136,7 +136,7 @@ static dev_t devt_from_partuuid(const char *uuid_str)
struct hd_struct *part;
part = disk_get_part(dev_to_disk(dev),
dev_to_part(dev)->partno + offset);
dev_to_part(dev)->bdev->bd_partno + offset);
if (part) {
devt = part_devt(part);
put_device(part_to_dev(part));