]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit02c200262632341ed8aa48fe2bbad84367f52e02
tree626774ed34ff318daa8bc68beae36acdf28661ba
parent072ab880bd1d2496d80a87d92ef2c6af23587362
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