Re: [PATCH 2/4] btrfs: use sb state to print space_cache mount option

David Sterba
2020-09-24T17:05:25Z

On Thu, Sep 17, 2020 at 11:13:39AM -0700, Boris Burkov wrote:
> @@ -1870,6 +1868,13 @@ static int btrfs_remount(struct super_block *sb, int *flags, char *data)
> if (!sb_rdonly(sb) || *flags & SB_RDONLY) {
> btrfs_warn(fs_info,
> "Remounting with free space tree only supported from read-only to read-write");
> + /*
> + * if we aren't building the free space tree, reset

First letter in comments should be uppercase, unless it's a name of
function or identifier

> + * the space cache options to what they were before
> + */
> + btrfs_clear_opt(fs_info->mount_opt, FREE_SPACE_TREE);
> + if (btrfs_free_space_cache_v1_active(fs_info))
> + btrfs_set_opt(fs_info->mount_opt, SPACE_CACHE);
> create_fst = false;