]> www.infradead.org Git - users/hch/block.git/commit
block: switch gendisk lookup to a simple xarray gendisk-lookup
authorChristoph Hellwig <hch@lst.de>
Thu, 3 Sep 2020 07:18:36 +0000 (09:18 +0200)
committerChristoph Hellwig <hch@lst.de>
Thu, 29 Oct 2020 08:41:19 +0000 (09:41 +0100)
commit2aa8840c446b029b28c2bb8ffff9cd0fc9e8ee79
treebd274683fc5f2f1511acd284bf7c0b0528d9c3b2
parent2db2cb7a8d35f921e21a093f7887e88eb8ba65b0
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>
block/genhd.c
include/linux/genhd.h