aboutsummaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-11-26 10:41:07 +0100
committerJens Axboe <axboe@kernel.dk>2020-12-01 14:53:40 -0700
commit977115c0f664e016a6b2774d4f97116ade23d732 (patch)
tree1fec5aa76caa573bdc71d4731aa5b18b959a3aa3 /block
parent0d02129e76edf91cf04fabf1efbc3a9a1f1d729a (diff)
block: stop using bdget_disk for partition 0
We can just dereference the point in struct gendisk instead. Also remove the now unused export. 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 'block')
-rw-r--r--block/genhd.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/block/genhd.c b/block/genhd.c
index 0fabfc90b8e4..b84b8671e627 100644
--- a/block/genhd.c
+++ b/block/genhd.c
@@ -930,7 +930,6 @@ struct block_device *bdget_disk(struct gendisk *disk, int partno)
return bdev;
}
-EXPORT_SYMBOL(bdget_disk);
/*
* print a full list of all partitions - intended for places where the root