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>
Showing
- block/blk-settings.c 1 addition, 1 deletionblock/blk-settings.c
- block/blk.h 0 additions, 1 deletionblock/blk.h
- block/genhd.c 12 additions, 151 deletionsblock/genhd.c
- block/partitions/core.c 6 additions, 25 deletionsblock/partitions/core.c
- include/linux/genhd.h 3 additions, 15 deletionsinclude/linux/genhd.h
Loading
Please register or sign in to comment