diff options
author | Luke Dashjr <luke@dashjr.org> | 2015-10-29 08:22:21 +0000 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-04-28 10:40:27 +0200 |
commit | 4c63c2454eff996c5e27991221106eb511f7db38 (patch) | |
tree | d816cb1d5c121f75ea39a0e877b4fe732848fd5d /fs/btrfs/ctree.h | |
parent | 02da2d72174c61988eb4456b53f405e3ebdebce4 (diff) | |
download | lwn-4c63c2454eff996c5e27991221106eb511f7db38.tar.gz lwn-4c63c2454eff996c5e27991221106eb511f7db38.zip |
btrfs: bugfix: handle FS_IOC32_{GETFLAGS,SETFLAGS,GETVERSION} in btrfs_ioctl
32-bit ioctl uses these rather than the regular FS_IOC_* versions. They can
be handled in btrfs using the same code. Without this, 32-bit {ch,ls}attr
fail.
Signed-off-by: Luke Dashjr <luke-jr+git@utopios.org>
Cc: stable@vger.kernel.org
Reviewed-by: Josef Bacik <jbacik@fb.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r-- | fs/btrfs/ctree.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index 84a6a5b3384a..208d19938fdf 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h @@ -4122,6 +4122,7 @@ void btrfs_test_inode_set_ops(struct inode *inode); /* ioctl.c */ long btrfs_ioctl(struct file *file, unsigned int cmd, unsigned long arg); +long btrfs_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg); int btrfs_ioctl_get_supported_features(void __user *arg); void btrfs_update_iflags(struct inode *inode); void btrfs_inherit_iflags(struct inode *inode, struct inode *dir); |