block: stop using bdget_disk for partition 0
authorChristoph Hellwig <hch@lst.de>
Thu, 26 Nov 2020 09:41:07 +0000 (10:41 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 1 Dec 2020 21:53:40 +0000 (14:53 -0700)
commit977115c0f664e016a6b2774d4f97116ade23d732
tree1fec5aa76caa573bdc71d4731aa5b18b959a3aa3
parent0d02129e76edf91cf04fabf1efbc3a9a1f1d729a
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>
block/genhd.c
drivers/block/nbd.c
drivers/block/xen-blkfront.c
drivers/block/zram/zram_drv.c
drivers/md/dm.c
drivers/s390/block/dasd_ioctl.c
fs/block_dev.c