diff options
author | Christoph Hellwig <hch@lst.de> | 2006-03-24 06:15:19 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-24 10:33:16 -0500 |
commit | 13c6204facb01d425320411c17febff666875518 (patch) | |
tree | df58981381da42532e0910694361eadb1c133ea9 /drivers/s390/block/dasd.c | |
parent | 61d3ad0edf67e3baa66f124bc9ce964523d41809 (diff) |
[PATCH] s390: use normal switch statement for ioctls in dasd_ioctlc
Handle ioctls implemented in dasd_ioctl through the normal switch statement
that most drivers use instead of the awkward dasd_ioctl_no_register routine.
This avoids searching a linear list on every call to dasd_ioctl(), and allows
to give the various ioctl implementation functions sane prototypes, aswell as
moving the check for bdev->bd_disk->private_data from the individual functions
to dasd_ioctl. (I think it can't actually every be NULL, but let's keep that
for later)
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/s390/block/dasd.c')
-rw-r--r-- | drivers/s390/block/dasd.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/s390/block/dasd.c b/drivers/s390/block/dasd.c index 33157c84d1d3..9e0b371ebe69 100644 --- a/drivers/s390/block/dasd.c +++ b/drivers/s390/block/dasd.c | |||
@@ -1807,7 +1807,6 @@ dasd_exit(void) | |||
1807 | #ifdef CONFIG_PROC_FS | 1807 | #ifdef CONFIG_PROC_FS |
1808 | dasd_proc_exit(); | 1808 | dasd_proc_exit(); |
1809 | #endif | 1809 | #endif |
1810 | dasd_ioctl_exit(); | ||
1811 | if (dasd_page_cache != NULL) { | 1810 | if (dasd_page_cache != NULL) { |
1812 | kmem_cache_destroy(dasd_page_cache); | 1811 | kmem_cache_destroy(dasd_page_cache); |
1813 | dasd_page_cache = NULL; | 1812 | dasd_page_cache = NULL; |
@@ -2093,9 +2092,6 @@ dasd_init(void) | |||
2093 | rc = dasd_parse(); | 2092 | rc = dasd_parse(); |
2094 | if (rc) | 2093 | if (rc) |
2095 | goto failed; | 2094 | goto failed; |
2096 | rc = dasd_ioctl_init(); | ||
2097 | if (rc) | ||
2098 | goto failed; | ||
2099 | #ifdef CONFIG_PROC_FS | 2095 | #ifdef CONFIG_PROC_FS |
2100 | rc = dasd_proc_init(); | 2096 | rc = dasd_proc_init(); |
2101 | if (rc) | 2097 | if (rc) |