diff options
author | Christoph Hellwig <hch@lst.de> | 2020-04-14 09:28:58 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-04-20 11:32:59 -0600 |
commit | 21be6cdc00954b5e5e5842b69ec8e83fb3cb0816 (patch) | |
tree | 832d4d8b17e3d4d39d1e911e20d587bca61634a9 /block | |
parent | d46430bf5a2298f55e20f59a90ebe3545d273b2f (diff) |
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>
Diffstat (limited to 'block')
-rw-r--r-- | block/partitions/core.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/block/partitions/core.c b/block/partitions/core.c index deccc3fbcd37..8c5295ca8ea6 100644 --- a/block/partitions/core.c +++ b/block/partitions/core.c @@ -624,6 +624,10 @@ int blk_drop_partitions(struct block_device *bdev) return 0; } +#ifdef CONFIG_S390 +/* for historic reasons in the DASD driver */ +EXPORT_SYMBOL_GPL(blk_drop_partitions); +#endif static bool blk_add_partition(struct gendisk *disk, struct block_device *bdev, struct parsed_partitions *state, int p) |