]> www.infradead.org Git - users/hch/block.git/commit
block: use an xarray for disk->part_tbl bi_bdev
authorChristoph Hellwig <hch@lst.de>
Thu, 21 Jan 2021 07:16:16 +0000 (08:16 +0100)
committerChristoph Hellwig <hch@lst.de>
Sat, 23 Jan 2021 21:02:42 +0000 (22:02 +0100)
commita26665f3d6da581683fda05b8f05b3a9e5659cf1
treea759833066f57196e42b555c90b834b516d0725c
parent072f9b72ec1b717450643aca922f5765ffcccf24
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>
block/blk-settings.c
block/blk.h
block/genhd.c
block/partitions/core.c
include/linux/genhd.h