diff options
author | Stefan Haberland <sth@linux.ibm.com> | 2020-05-19 16:22:59 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-05-21 08:22:20 -0600 |
commit | 26d7e28e38206b1b3207af1409eee2269ab36f82 (patch) | |
tree | c85113c310dd12ebcb286e91904eb9054e435a73 /include/linux/dasd_mod.h | |
parent | 9353848c6589ffe6373d03f3a58feaeda1009641 (diff) | |
download | lwn-26d7e28e38206b1b3207af1409eee2269ab36f82.tar.gz lwn-26d7e28e38206b1b3207af1409eee2269ab36f82.zip |
s390/dasd: remove ioctl_by_bdev calls
The IBM partition parser requires device type specific information only
available to the DASD driver to correctly register partitions. The
current approach of using ioctl_by_bdev with a fake user space pointer
is discouraged.
Fix this by replacing IOCTL calls with direct in-kernel function calls.
Suggested-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Stefan Haberland <sth@linux.ibm.com>
Reviewed-by: Jan Hoeppner <hoeppner@linux.ibm.com>
Reviewed-by: Peter Oberparleiter <oberpar@linux.ibm.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/dasd_mod.h')
-rw-r--r-- | include/linux/dasd_mod.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/dasd_mod.h b/include/linux/dasd_mod.h new file mode 100644 index 000000000000..d39abad2ff6e --- /dev/null +++ b/include/linux/dasd_mod.h @@ -0,0 +1,9 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef DASD_MOD_H +#define DASD_MOD_H + +#include <asm/dasd.h> + +extern int dasd_biodasdinfo(struct gendisk *disk, dasd_information2_t *info); + +#endif |