@@ -404,7 +404,8 @@ int btrfs_parse_options(struct btrfs_root *root, char *options)
cache_gen = btrfs_super_cache_generation(root->fs_info->super_copy);
if (cache_gen)
- btrfs_set_opt(info->mount_opt, SPACE_CACHE);
+ btrfs_set_and_info(root, SPACE_CACHE,
+ "disk space caching is enabled");
if (!options)
goto out;
@@ -758,8 +759,6 @@ int btrfs_parse_options(struct btrfs_root *root, char *options)
}
}
out:
- if (!ret && btrfs_test_opt(root, SPACE_CACHE))
- btrfs_info(root->fs_info, "disk space caching is enabled");
kfree(orig);
return ret;
}