diff options
Diffstat (limited to 'fs/btrfs/ioctl.c')
-rw-r--r-- | fs/btrfs/ioctl.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index e392dd67f0ba..209dcfa9ab33 100644 --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c | |||
@@ -1455,6 +1455,8 @@ int btrfs_defrag_file(struct inode *inode, struct file *file, | |||
1455 | 1455 | ||
1456 | if (range->compress_type == BTRFS_COMPRESS_LZO) { | 1456 | if (range->compress_type == BTRFS_COMPRESS_LZO) { |
1457 | btrfs_set_fs_incompat(root->fs_info, COMPRESS_LZO); | 1457 | btrfs_set_fs_incompat(root->fs_info, COMPRESS_LZO); |
1458 | btrfs_sysfs_feature_update(root->fs_info, | ||
1459 | BTRFS_FEATURE_INCOMPAT_COMPRESS_LZO, FEAT_INCOMPAT); | ||
1458 | } | 1460 | } |
1459 | 1461 | ||
1460 | ret = defrag_count; | 1462 | ret = defrag_count; |
@@ -4063,6 +4065,8 @@ static long btrfs_ioctl_default_subvol(struct file *file, void __user *argp) | |||
4063 | btrfs_free_path(path); | 4065 | btrfs_free_path(path); |
4064 | 4066 | ||
4065 | btrfs_set_fs_incompat(root->fs_info, DEFAULT_SUBVOL); | 4067 | btrfs_set_fs_incompat(root->fs_info, DEFAULT_SUBVOL); |
4068 | btrfs_sysfs_feature_update(root->fs_info, | ||
4069 | BTRFS_FEATURE_INCOMPAT_DEFAULT_SUBVOL, FEAT_INCOMPAT); | ||
4066 | btrfs_end_transaction(trans, root); | 4070 | btrfs_end_transaction(trans, root); |
4067 | out: | 4071 | out: |
4068 | mnt_drop_write_file(file); | 4072 | mnt_drop_write_file(file); |