block: use an xarray for disk->part_tbl
authorChristoph Hellwig <hch@lst.de>
Sun, 24 Jan 2021 10:02:41 +0000 (11:02 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 25 Jan 2021 01:17:20 +0000 (18:17 -0700)
commita33df75c6328bf40078b35f2040d8e54d574c357
tree626774ed34ff318daa8bc68beae36acdf28661ba
parent0470dd9d5f103e7f1d5ba8f755f687c3106c7df1
block: use an xarray for disk->part_tbl

Now that no fast path lookups in the partition table are left, there is
no point in micro-optimizing the data structure for it.  Just use a bog
standard xarray.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-settings.c
block/blk.h
block/genhd.c
block/partitions/core.c
include/linux/genhd.h