VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   34 Branches   58 Tags
author: Christoph Hellwig <hch@lst.de> 2020-11-24 09:37:14 +0100 committer: Jens Axboe <axboe@kernel.dk> 2020-12-01 14:53:40 -0700 commit: 41e5c81984eac8ce87f2b4f57fec0bd90a049b2b parent: 8446fe9255be821cb38ffd306d7e8edc4b9ea662
Commit Summary:
block: remove the partno field from struct hd_struct
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/init/do_mounts.c b/init/do_mounts.c
index 368ccb718501..86bef93e72eb 100644
--- a/init/do_mounts.c
+++ b/init/do_mounts.c
@@ -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));