aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nilfs2
diff options
context:
space:
mode:
authorMikulas Patocka <mikulas@twibright.com>2015-07-09 12:05:15 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2015-07-09 14:42:21 -0400
commit9abea2d64ce93b6909de7f83a7f681f572369708 (patch)
tree6ffa49c9e985f7212ed8edc7271d4969dc3e521a /fs/nilfs2
parent6f957724b94cb19f5c1c97efd01dd4df8ced323c (diff)
ioctl_compat: handle FITRIM
The FITRIM ioctl has the same arguments on 32-bit and 64-bit architectures, so we can add it to the list of compatible ioctls and drop it from compat_ioctl method of various filesystems. Signed-off-by: Mikulas Patocka <mpatocka@redhat.com> Cc: Al Viro <viro@zeniv.linux.org.uk> Cc: Ted Ts'o <tytso@google.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/nilfs2')
-rw-r--r--fs/nilfs2/ioctl.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/nilfs2/ioctl.c b/fs/nilfs2/ioctl.c
index 9a20e513d7eb..aba43811d6ef 100644
--- a/fs/nilfs2/ioctl.c
+++ b/fs/nilfs2/ioctl.c
@@ -1369,7 +1369,6 @@ long nilfs_compat_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
1369 case NILFS_IOCTL_SYNC: 1369 case NILFS_IOCTL_SYNC:
1370 case NILFS_IOCTL_RESIZE: 1370 case NILFS_IOCTL_RESIZE:
1371 case NILFS_IOCTL_SET_ALLOC_RANGE: 1371 case NILFS_IOCTL_SET_ALLOC_RANGE:
1372 case FITRIM:
1373 break; 1372 break;
1374 default: 1373 default:
1375 return -ENOIOCTLCMD; 1374 return -ENOIOCTLCMD;