summaryrefslogtreecommitdiffstats
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 22:53:40 +0100
commit977115c0f664e016a6b2774d4f97116ade23d732 (patch)
tree1fec5aa76caa573bdc71d4731aa5b18b959a3aa3 /block
parentblock: merge struct block_device and struct hd_struct (diff)
downloadlinux-977115c0f664e016a6b2774d4f97116ade23d732.tar.xz
linux-977115c0f664e016a6b2774d4f97116ade23d732.zip
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