block: remove bdget_disk
authorChristoph Hellwig <hch@lst.de>
Tue, 25 May 2021 06:13:01 +0000 (08:13 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 1 Jun 2021 13:47:14 +0000 (07:47 -0600)
commit0e0ccdecb3cff95a350b4364e7ebbaa754d0e47d
treee824664c86b6b1dc7799c5fd007f1d5615cbc7f0
parentc97d93c31e5734a16bfe663085ec91b8c9fb20f9
block: remove bdget_disk

Just opencode the xa_load in the callers, as none of them actually
needs a reference to the bdev.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20210525061301.2242282-9-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/genhd.c
block/partitions/core.c
include/linux/genhd.h