block: remove the partno field from struct hd_struct
authorChristoph Hellwig <hch@lst.de>
Tue, 24 Nov 2020 08:37:14 +0000 (09:37 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 1 Dec 2020 21:53:40 +0000 (14:53 -0700)
commit41e5c81984eac8ce87f2b4f57fec0bd90a049b2b
treee3df22a54db95b1875e8680a9c77e131cddee383
parent8446fe9255be821cb38ffd306d7e8edc4b9ea662
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>
block/genhd.c
block/partitions/core.c
include/linux/genhd.h
init/do_mounts.c