diff options
author | David Howells <dhowells@redhat.com> | 2006-08-29 14:06:23 -0400 |
---|---|---|
committer | Jens Axboe <axboe@nelson.home.kernel.dk> | 2006-09-30 14:52:29 -0400 |
commit | 52a700c5675f399c07e6e57328291e57f13ef3bb (patch) | |
tree | 4ef1a3a7d66f589ad2e5f7d769da8c30f172a70e /fs/compat_ioctl.c | |
parent | e322ff07fb2d0f05c02d85e7c6b30d23f308c20f (diff) |
[PATCH] BLOCK: Move the Ext3 device ioctl compat stuff to the Ext3 driver [try #6]
Move the Ext3 device ioctl compat stuff from fs/compat_ioctl.c to the Ext3
driver so that the Ext3 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 | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/fs/compat_ioctl.c b/fs/compat_ioctl.c index 3594668559af..e5eb0f10f05a 100644 --- a/fs/compat_ioctl.c +++ b/fs/compat_ioctl.c | |||
@@ -45,8 +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/ext3_jbd.h> | ||
49 | #include <linux/ext3_fs.h> | ||
50 | #include <linux/videodev.h> | 48 | #include <linux/videodev.h> |
51 | #include <linux/netdevice.h> | 49 | #include <linux/netdevice.h> |
52 | #include <linux/raw.h> | 50 | #include <linux/raw.h> |
@@ -158,22 +156,6 @@ static int rw_long(unsigned int fd, unsigned int cmd, unsigned long arg) | |||
158 | return err; | 156 | return err; |
159 | } | 157 | } |
160 | 158 | ||
161 | static int do_ext3_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg) | ||
162 | { | ||
163 | /* These are just misnamed, they actually get/put from/to user an int */ | ||
164 | switch (cmd) { | ||
165 | case EXT3_IOC32_GETVERSION: cmd = EXT3_IOC_GETVERSION; break; | ||
166 | case EXT3_IOC32_SETVERSION: cmd = EXT3_IOC_SETVERSION; break; | ||
167 | case EXT3_IOC32_GETRSVSZ: cmd = EXT3_IOC_GETRSVSZ; break; | ||
168 | case EXT3_IOC32_SETRSVSZ: cmd = EXT3_IOC_SETRSVSZ; break; | ||
169 | case EXT3_IOC32_GROUP_EXTEND: cmd = EXT3_IOC_GROUP_EXTEND; break; | ||
170 | #ifdef CONFIG_JBD_DEBUG | ||
171 | case EXT3_IOC32_WAIT_FOR_READONLY: cmd = EXT3_IOC_WAIT_FOR_READONLY; break; | ||
172 | #endif | ||
173 | } | ||
174 | return sys_ioctl(fd, cmd, (unsigned long)compat_ptr(arg)); | ||
175 | } | ||
176 | |||
177 | struct compat_video_event { | 159 | struct compat_video_event { |
178 | int32_t type; | 160 | int32_t type; |
179 | compat_time_t timestamp; | 161 | compat_time_t timestamp; |
@@ -2712,15 +2694,6 @@ HANDLE_IOCTL(PIO_UNIMAP, do_unimap_ioctl) | |||
2712 | HANDLE_IOCTL(GIO_UNIMAP, do_unimap_ioctl) | 2694 | HANDLE_IOCTL(GIO_UNIMAP, do_unimap_ioctl) |
2713 | HANDLE_IOCTL(KDFONTOP, do_kdfontop_ioctl) | 2695 | HANDLE_IOCTL(KDFONTOP, do_kdfontop_ioctl) |
2714 | #endif | 2696 | #endif |
2715 | HANDLE_IOCTL(EXT3_IOC32_GETVERSION, do_ext3_ioctl) | ||
2716 | HANDLE_IOCTL(EXT3_IOC32_SETVERSION, do_ext3_ioctl) | ||
2717 | HANDLE_IOCTL(EXT3_IOC32_GETRSVSZ, do_ext3_ioctl) | ||
2718 | HANDLE_IOCTL(EXT3_IOC32_SETRSVSZ, do_ext3_ioctl) | ||
2719 | HANDLE_IOCTL(EXT3_IOC32_GROUP_EXTEND, do_ext3_ioctl) | ||
2720 | COMPATIBLE_IOCTL(EXT3_IOC_GROUP_ADD) | ||
2721 | #ifdef CONFIG_JBD_DEBUG | ||
2722 | HANDLE_IOCTL(EXT3_IOC32_WAIT_FOR_READONLY, do_ext3_ioctl) | ||
2723 | #endif | ||
2724 | /* One SMB ioctl needs translations. */ | 2697 | /* One SMB ioctl needs translations. */ |
2725 | #define SMB_IOC_GETMOUNTUID_32 _IOR('u', 1, compat_uid_t) | 2698 | #define SMB_IOC_GETMOUNTUID_32 _IOR('u', 1, compat_uid_t) |
2726 | HANDLE_IOCTL(SMB_IOC_GETMOUNTUID_32, do_smb_getmountuid) | 2699 | HANDLE_IOCTL(SMB_IOC_GETMOUNTUID_32, do_smb_getmountuid) |