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:
committed by
Jens Axboe
parent
8446fe9255
commit
41e5c81984
+1
-1
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user