diff options
author | David Howells <dhowells@redhat.com> | 2006-08-29 14:06:20 -0400 |
---|---|---|
committer | Jens Axboe <axboe@nelson.home.kernel.dk> | 2006-09-30 14:52:29 -0400 |
commit | e322ff07fb2d0f05c02d85e7c6b30d23f308c20f (patch) | |
tree | 56c6817342087294f5242dbea9eaaa38098a9046 /fs/compat_ioctl.c | |
parent | 52b499c438ff60991eb3855ca090782569b3e8cf (diff) |
[PATCH] BLOCK: Move the Ext2 device ioctl compat stuff to the Ext2 driver [try #6]
Move the Ext2 device ioctl compat stuff from fs/compat_ioctl.c to the Ext2
driver so that the Ext2 header file doesn't need to be included.
Signed-Off-By: David Howells <dhowells@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/compat_ioctl.c')
-rw-r--r-- | fs/compat_ioctl.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/fs/compat_ioctl.c b/fs/compat_ioctl.c index 0346f2ab57c4..3594668559af 100644 --- a/fs/compat_ioctl.c +++ b/fs/compat_ioctl.c | |||
@@ -45,7 +45,6 @@ | |||
45 | #include <linux/tty.h> | 45 | #include <linux/tty.h> |
46 | #include <linux/vt_kern.h> | 46 | #include <linux/vt_kern.h> |
47 | #include <linux/fb.h> | 47 | #include <linux/fb.h> |
48 | #include <linux/ext2_fs.h> | ||
49 | #include <linux/ext3_jbd.h> | 48 | #include <linux/ext3_jbd.h> |
50 | #include <linux/ext3_fs.h> | 49 | #include <linux/ext3_fs.h> |
51 | #include <linux/videodev.h> | 50 | #include <linux/videodev.h> |
@@ -159,18 +158,6 @@ static int rw_long(unsigned int fd, unsigned int cmd, unsigned long arg) | |||
159 | return err; | 158 | return err; |
160 | } | 159 | } |
161 | 160 | ||
162 | static int do_ext2_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg) | ||
163 | { | ||
164 | /* These are just misnamed, they actually get/put from/to user an int */ | ||
165 | switch (cmd) { | ||
166 | case EXT2_IOC32_GETFLAGS: cmd = EXT2_IOC_GETFLAGS; break; | ||
167 | case EXT2_IOC32_SETFLAGS: cmd = EXT2_IOC_SETFLAGS; break; | ||
168 | case EXT2_IOC32_GETVERSION: cmd = EXT2_IOC_GETVERSION; break; | ||
169 | case EXT2_IOC32_SETVERSION: cmd = EXT2_IOC_SETVERSION; break; | ||
170 | } | ||
171 | return sys_ioctl(fd, cmd, (unsigned long)compat_ptr(arg)); | ||
172 | } | ||
173 | |||
174 | static int do_ext3_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg) | 161 | static int do_ext3_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg) |
175 | { | 162 | { |
176 | /* These are just misnamed, they actually get/put from/to user an int */ | 163 | /* These are just misnamed, they actually get/put from/to user an int */ |
@@ -2725,10 +2712,6 @@ HANDLE_IOCTL(PIO_UNIMAP, do_unimap_ioctl) | |||
2725 | HANDLE_IOCTL(GIO_UNIMAP, do_unimap_ioctl) | 2712 | HANDLE_IOCTL(GIO_UNIMAP, do_unimap_ioctl) |
2726 | HANDLE_IOCTL(KDFONTOP, do_kdfontop_ioctl) | 2713 | HANDLE_IOCTL(KDFONTOP, do_kdfontop_ioctl) |
2727 | #endif | 2714 | #endif |
2728 | HANDLE_IOCTL(EXT2_IOC32_GETFLAGS, do_ext2_ioctl) | ||
2729 | HANDLE_IOCTL(EXT2_IOC32_SETFLAGS, do_ext2_ioctl) | ||
2730 | HANDLE_IOCTL(EXT2_IOC32_GETVERSION, do_ext2_ioctl) | ||
2731 | HANDLE_IOCTL(EXT2_IOC32_SETVERSION, do_ext2_ioctl) | ||
2732 | HANDLE_IOCTL(EXT3_IOC32_GETVERSION, do_ext3_ioctl) | 2715 | HANDLE_IOCTL(EXT3_IOC32_GETVERSION, do_ext3_ioctl) |
2733 | HANDLE_IOCTL(EXT3_IOC32_SETVERSION, do_ext3_ioctl) | 2716 | HANDLE_IOCTL(EXT3_IOC32_SETVERSION, do_ext3_ioctl) |
2734 | HANDLE_IOCTL(EXT3_IOC32_GETRSVSZ, do_ext3_ioctl) | 2717 | HANDLE_IOCTL(EXT3_IOC32_GETRSVSZ, do_ext3_ioctl) |