block: switch gendisk lookup to a simple xarray
authorChristoph Hellwig <hch@lst.de>
Thu, 29 Oct 2020 14:58:41 +0000 (15:58 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 16 Nov 2020 15:14:31 +0000 (08:14 -0700)
commite418de3abcda8b102f737919e830024d1455938f
tree654f790a2abba05e389958316afa9b66bf06ac24
parent76487f0241423497218f6ec505aa93cc29c8ddcd
block: switch gendisk lookup to a simple xarray

Now that bdev_map is only used for finding gendisks, we can use
a simple xarray instead of the regions tracking structure for it.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/genhd.c
include/linux/genhd.h