Message ID | 1426786609-1442-1-git-send-email-colin.king@canonical.com |
---|---|
State | New |
Headers | show |
Sounds straight fwd, cherry pick and testable
Applied to utopic. -apw
diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c index 568ddc1..d66fbd5 100644 --- a/fs/btrfs/super.c +++ b/fs/btrfs/super.c @@ -507,6 +507,13 @@ int btrfs_parse_options(struct btrfs_root *root, char *options) btrfs_info(root->fs_info, "btrfs: use %s compression", compress_type); + /* + * If we remount from compress-force=xxx to + * compress=xxx, we need clear FORCE_COMPRESS + * flag, otherwise, there is no way for users + * to disable forcible compression separately. + */ + btrfs_clear_opt(info->mount_opt, FORCE_COMPRESS); } break; case Opt_ssd: