aboutsummaryrefslogtreecommitdiffstats
path: root/block/partitions/check.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2021-08-10 17:45:09 +0200
committerJens Axboe <axboe@kernel.dk>2021-08-12 10:31:35 -0600
commita08aa9bccdc282b5e8d133bf8c239473f057b464 (patch)
treebacbfd0d8f42786aed2fff06103c78aa3a98b3df /block/partitions/check.h
parentblock: remove GENHD_FL_UP (diff)
downloadlinux-dev-a08aa9bccdc282b5e8d133bf8c239473f057b464.tar.xz
linux-dev-a08aa9bccdc282b5e8d133bf8c239473f057b464.zip
block: store a gendisk in struct parsed_partitions
Partition scanning only happens on the whole device, so pass a struct gendisk instead of the whole device block_device to the scanners. This allows to simplify printing the device name in various places as the disk name is available in disk->name. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Stefan Haberland <sth@linux.ibm.com> Link: https://lore.kernel.org/r/20210810154512.1809898-2-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/partitions/check.h')
-rw-r--r--block/partitions/check.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/partitions/check.h b/block/partitions/check.h
index c577e9ee67f0..d5b28e309d64 100644
--- a/block/partitions/check.h
+++ b/block/partitions/check.h
@@ -9,7 +9,7 @@
* description.
*/
struct parsed_partitions {
- struct block_device *bdev;
+ struct gendisk *disk;
char name[BDEVNAME_SIZE];
struct {
sector_t from;