summaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-11-24 09:37:14 +0100
committerJens Axboe <axboe@kernel.dk>2020-12-01 14:53:40 -0700
commit41e5c81984eac8ce87f2b4f57fec0bd90a049b2b (patch)
treee3df22a54db95b1875e8680a9c77e131cddee383 /init
parent8446fe9255be821cb38ffd306d7e8edc4b9ea662 (diff)
downloadlinux-41e5c81984eac8ce87f2b4f57fec0bd90a049b2b.tar.bz2
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>
Diffstat (limited to 'init')
-rw-r--r--init/do_mounts.c2
1 files changed, 1 insertions, 1 deletions
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));