diff options
author | Jeff Mahoney <jeffm@suse.com> | 2017-02-07 03:39:09 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-02-08 19:47:30 +0300 |
commit | 2a362249187a8d0f6d942d6e1d763d150a296f47 (patch) | |
tree | a82a639c63ee3a78259c9ee909d19c2c48d9d3d3 /fs/nfs_common | |
parent | 57b59ed2e5b91e958843609c7884794e29e6c4cb (diff) | |
download | linux-2a362249187a8d0f6d942d6e1d763d150a296f47.tar.xz |
btrfs: fix btrfs_compat_ioctl failures on non-compat ioctls
Commit 4c63c2454ef incorrectly assumed that returning -ENOIOCTLCMD would
cause the native ioctl to be called. The ->compat_ioctl callback is
expected to handle all ioctls, not just compat variants. As a result,
when using 32-bit userspace on 64-bit kernels, everything except those
three ioctls would return -ENOTTY.
Fixes: 4c63c2454ef ("btrfs: bugfix: handle FS_IOC32_{GETFLAGS,SETFLAGS,GETVERSION} in btrfs_ioctl")
Cc: stable@vger.kernel.org
Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/nfs_common')
0 files changed, 0 insertions, 0 deletions