diff options
| author | Linus Torvalds <torvalds@g5.osdl.org> | 2006-09-30 15:07:01 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-09-30 15:07:01 -0400 |
| commit | 56f29d7fe452890eeeb7f2b0138b2d95b9745fb6 (patch) | |
| tree | 01b6b70297c53c9beb8d11eb186fbad9c166b1a2 /fs/reiserfs/ioctl.c | |
| parent | e823aff2d6eb43083abcc75a32ddfb167c324089 (diff) | |
| parent | 059af497c23492cb1ddcbba11c09dad385960bc0 (diff) | |
Merge branch 'block' of git://brick.kernel.dk/data/git/linux-2.6-block
* 'block' of git://brick.kernel.dk/data/git/linux-2.6-block: (67 commits)
[PATCH] blk_queue_start_tag() shared map race fix
[PATCH] Update axboe@suse.de email address
[PATCH] fix creating zero sized bio mempools in low memory system
[PATCH] CONFIG_BLOCK: blk_congestion_wait() fix
[PATCH] CONFIG_BLOCK internal.h cleanups
[PATCH] BLOCK: Make USB storage depend on SCSI rather than selecting it [try #6]
[PATCH] BLOCK: Make it possible to disable the block layer [try #6]
[PATCH] BLOCK: Remove no-longer necessary linux/buffer_head.h inclusions [try #6]
[PATCH] BLOCK: Remove no-longer necessary linux/mpage.h inclusions [try #6]
[PATCH] BLOCK: Move the msdos device ioctl compat stuff to the msdos driver [try #6]
[PATCH] BLOCK: Move the Ext3 device ioctl compat stuff to the Ext3 driver [try #6]
[PATCH] BLOCK: Move the Ext2 device ioctl compat stuff to the Ext2 driver [try #6]
[PATCH] BLOCK: Move the ReiserFS device ioctl compat stuff to the ReiserFS driver [try #6]
[PATCH] BLOCK: Move common FS-specific ioctls to linux/fs.h [try #6]
[PATCH] BLOCK: Move the loop device ioctl compat stuff to the loop driver [try #6]
[PATCH] BLOCK: Move __invalidate_device() to block_dev.c [try #6]
[PATCH] BLOCK: Dissociate generic_writepages() from mpage stuff [try #6]
[PATCH] BLOCK: Remove dependence on existence of blockdev_superblock [try #6]
[PATCH] BLOCK: Move extern declarations out of fs/*.c into header files [try #6]
[PATCH] BLOCK: Don't call block_sync_page() from AFS [try #6]
...
Diffstat (limited to 'fs/reiserfs/ioctl.c')
| -rw-r--r-- | fs/reiserfs/ioctl.c | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/fs/reiserfs/ioctl.c b/fs/reiserfs/ioctl.c index a986b5e1e288..9c57578cb831 100644 --- a/fs/reiserfs/ioctl.c +++ b/fs/reiserfs/ioctl.c | |||
| @@ -9,6 +9,7 @@ | |||
| 9 | #include <asm/uaccess.h> | 9 | #include <asm/uaccess.h> |
| 10 | #include <linux/pagemap.h> | 10 | #include <linux/pagemap.h> |
| 11 | #include <linux/smp_lock.h> | 11 | #include <linux/smp_lock.h> |
| 12 | #include <linux/compat.h> | ||
| 12 | 13 | ||
| 13 | static int reiserfs_unpack(struct inode *inode, struct file *filp); | 14 | static int reiserfs_unpack(struct inode *inode, struct file *filp); |
| 14 | 15 | ||
| @@ -94,6 +95,40 @@ int reiserfs_ioctl(struct inode *inode, struct file *filp, unsigned int cmd, | |||
| 94 | } | 95 | } |
| 95 | } | 96 | } |
| 96 | 97 | ||
| 98 | #ifdef CONFIG_COMPAT | ||
| 99 | long reiserfs_compat_ioctl(struct file *file, unsigned int cmd, | ||
| 100 | unsigned long arg) | ||
| 101 | { | ||
| 102 | struct inode *inode = file->f_dentry->d_inode; | ||
| 103 | int ret; | ||
| 104 | |||
| 105 | /* These are just misnamed, they actually get/put from/to user an int */ | ||
| 106 | switch (cmd) { | ||
| 107 | case REISERFS_IOC32_UNPACK: | ||
| 108 | cmd = REISERFS_IOC_UNPACK; | ||
| 109 | break; | ||
| 110 | case REISERFS_IOC32_GETFLAGS: | ||
| 111 | cmd = REISERFS_IOC_GETFLAGS; | ||
| 112 | break; | ||
| 113 | case REISERFS_IOC32_SETFLAGS: | ||
| 114 | cmd = REISERFS_IOC_SETFLAGS; | ||
| 115 | break; | ||
| 116 | case REISERFS_IOC32_GETVERSION: | ||
| 117 | cmd = REISERFS_IOC_GETVERSION; | ||
| 118 | break; | ||
| 119 | case REISERFS_IOC32_SETVERSION: | ||
| 120 | cmd = REISERFS_IOC_SETVERSION; | ||
| 121 | break; | ||
| 122 | default: | ||
| 123 | return -ENOIOCTLCMD; | ||
| 124 | } | ||
| 125 | lock_kernel(); | ||
| 126 | ret = reiserfs_ioctl(inode, file, cmd, (unsigned long) compat_ptr(arg)); | ||
| 127 | unlock_kernel(); | ||
| 128 | return ret; | ||
| 129 | } | ||
| 130 | #endif | ||
| 131 | |||
| 97 | /* | 132 | /* |
| 98 | ** reiserfs_unpack | 133 | ** reiserfs_unpack |
| 99 | ** Function try to convert tail from direct item into indirect. | 134 | ** Function try to convert tail from direct item into indirect. |
