aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nilfs2
diff options
context:
space:
mode:
authorThomas Meyer <thomas@m3y3r.de>2011-12-19 20:11:55 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2011-12-20 13:25:04 -0500
commit695c60f21c69e525a89279a5f35bae4ff237afbc (patch)
treeff706db0f49c246a398d1bbb0fc0336a43334dd1 /fs/nilfs2
parentb246272ecc5ac68c743b15c9e41a2275f7ce70e2 (diff)
nilfs2: unbreak compat ioctl
commit 828b1c50ae ("nilfs2: add compat ioctl") incidentally broke all other NILFS compat ioctls. Make them work again. Signed-off-by: Thomas Meyer <thomas@m3y3r.de> Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp> Tested-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp> Cc: <stable@vger.kernel.org> [3.0+] Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/nilfs2')
-rw-r--r--fs/nilfs2/ioctl.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/fs/nilfs2/ioctl.c b/fs/nilfs2/ioctl.c
index 41d6743d303c..3e654273cfc2 100644
--- a/fs/nilfs2/ioctl.c
+++ b/fs/nilfs2/ioctl.c
@@ -842,6 +842,19 @@ long nilfs_compat_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
842 case FS_IOC32_GETVERSION: 842 case FS_IOC32_GETVERSION:
843 cmd = FS_IOC_GETVERSION; 843 cmd = FS_IOC_GETVERSION;
844 break; 844 break;
845 case NILFS_IOCTL_CHANGE_CPMODE:
846 case NILFS_IOCTL_DELETE_CHECKPOINT:
847 case NILFS_IOCTL_GET_CPINFO:
848 case NILFS_IOCTL_GET_CPSTAT:
849 case NILFS_IOCTL_GET_SUINFO:
850 case NILFS_IOCTL_GET_SUSTAT:
851 case NILFS_IOCTL_GET_VINFO:
852 case NILFS_IOCTL_GET_BDESCS:
853 case NILFS_IOCTL_CLEAN_SEGMENTS:
854 case NILFS_IOCTL_SYNC:
855 case NILFS_IOCTL_RESIZE:
856 case NILFS_IOCTL_SET_ALLOC_RANGE:
857 break;
845 default: 858 default:
846 return -ENOIOCTLCMD; 859 return -ENOIOCTLCMD;
847 } 860 }