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

View file

@ -54,7 +54,6 @@ struct partition_meta_info {
struct hd_struct {
struct block_device *bdev;
struct device __dev;
int partno;
};
/**