dasd: use blk_drop_partitions instead of badly reimplementing it
authorChristoph Hellwig <hch@lst.de>
Tue, 14 Apr 2020 07:28:58 +0000 (09:28 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 20 Apr 2020 17:32:59 +0000 (11:32 -0600)
commit21be6cdc00954b5e5e5842b69ec8e83fb3cb0816
tree832d4d8b17e3d4d39d1e911e20d587bca61634a9
parentd46430bf5a2298f55e20f59a90ebe3545d273b2f
dasd: use blk_drop_partitions instead of badly reimplementing it

Use the blk_drop_partitions function instead of messing around with
ioctls that get kernel pointers.  For this blk_drop_partitions needs
to be exported, which it normally shouldn't - make an exception for
s390 only.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/partitions/core.c
drivers/s390/block/dasd_genhd.c