summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ioctl.c
diff options
context:
space:
mode:
authorDavid Sterba2016-02-17 15:24:14 +0100
committerDavid Sterba2016-02-23 12:56:21 +0100
commitc5868f8362f5620302c66848d400368f8d4b45f8 (patch)
tree23238ca3d341afa5016af29323107f477c9f3c63 /fs/btrfs/ioctl.c
parentLinux 4.5-rc3 (diff)
downloadkernel-qcow2-linux-c5868f8362f5620302c66848d400368f8d4b45f8.tar.gz
kernel-qcow2-linux-c5868f8362f5620302c66848d400368f8d4b45f8.tar.xz
kernel-qcow2-linux-c5868f8362f5620302c66848d400368f8d4b45f8.zip
btrfs: add GET_SUPPORTED_FEATURES to the control device ioctls
The control device is accessible when no filesystem is mounted and we may want to query features supported by the module. This is already possible using the sysfs files, this ioctl is for parity and convenience. Reviewed-by: Anand Jain <anand.jain@oracle.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/ioctl.c')
-rw-r--r--fs/btrfs/ioctl.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c
index 952172ca7e45..f4c6ed5c5300 100644
--- a/fs/btrfs/ioctl.c
+++ b/fs/btrfs/ioctl.c
@@ -5187,8 +5187,7 @@ out_unlock:
.compat_ro_flags = BTRFS_FEATURE_COMPAT_RO_##suffix, \
.incompat_flags = BTRFS_FEATURE_INCOMPAT_##suffix }
-static int btrfs_ioctl_get_supported_features(struct file *file,
- void __user *arg)
+int btrfs_ioctl_get_supported_features(struct file *file, void __user *arg)
{
static const struct btrfs_ioctl_feature_flags features[3] = {
INIT_FEATURE_FLAGS(SUPP),