block: remove alloc_part_info and free_part_info
authorChristoph Hellwig <hch@lst.de>
Tue, 24 Mar 2020 07:25:14 +0000 (08:25 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 24 Mar 2020 13:57:07 +0000 (07:57 -0600)
commitf17c21c1ecb80e957bafa07d6454836854be7cf2
treedefb8d2c974a8ba695f4a109e2217b994142b459
parent3ad5cee5cd000dc05e6c2410b06fc1d818e7b1e9
block: remove alloc_part_info and free_part_info

There isn't any good reason not to simply open code the allocation and
freeing of the partition_meta_info structure.  Especially as one of
the branches in alloc_part_info is entirely dead code.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/partition-generic.c
include/linux/genhd.h