diff options
author | Chris Mason <clm@fb.com> | 2017-02-10 12:53:18 -0800 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2017-02-10 12:53:18 -0800 |
commit | f3c7bfbda7ce03c603b4292efddc944228dccc55 (patch) | |
tree | a82a639c63ee3a78259c9ee909d19c2c48d9d3d3 | |
parent | 57b59ed2e5b91e958843609c7884794e29e6c4cb (diff) | |
parent | 2a362249187a8d0f6d942d6e1d763d150a296f47 (diff) | |
download | linux-f3c7bfbda7ce03c603b4292efddc944228dccc55.tar.bz2 |
Merge branch 'for-chris' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux into for-linus-4.10
-rw-r--r-- | fs/btrfs/ioctl.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index 0a6902555e65..0c77cad89e87 100644 --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c @@ -5665,6 +5665,10 @@ long btrfs_ioctl(struct file *file, unsigned int #ifdef CONFIG_COMPAT long btrfs_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg) { + /* + * These all access 32-bit values anyway so no further + * handling is necessary. + */ switch (cmd) { case FS_IOC32_GETFLAGS: cmd = FS_IOC_GETFLAGS; @@ -5675,8 +5679,6 @@ long btrfs_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg) case FS_IOC32_GETVERSION: cmd = FS_IOC_GETVERSION; break; - default: - return -ENOIOCTLCMD; } return btrfs_ioctl(file, cmd, (unsigned long) compat_ptr(arg)); |