aboutsummaryrefslogtreecommitdiffstats
path: root/block/partitions
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-04-14 09:28:58 +0200
committerJens Axboe <axboe@kernel.dk>2020-04-20 11:32:59 -0600
commit21be6cdc00954b5e5e5842b69ec8e83fb3cb0816 (patch)
tree832d4d8b17e3d4d39d1e911e20d587bca61634a9 /block/partitions
parentblock: remove the disk argument from blk_drop_partitions (diff)
downloadlinux-dev-21be6cdc00954b5e5e5842b69ec8e83fb3cb0816.tar.xz
linux-dev-21be6cdc00954b5e5e5842b69ec8e83fb3cb0816.zip
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/partitions')
-rw-r--r--block/partitions/core.c4
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)