From: Naohiro Aota <na...@elisp.net>

Remount operation always tells you it enabled space cache.
I consider it's a bit verbose and is better not to show
this message on remounting.

Signed-off-by: Naohiro Aota <na...@elisp.net>
Signed-off-by: Satoru Takeuchi <takeuchi_sat...@jp.fujitsu.com>
---
 fs/btrfs/super.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c
index 7ad4293..03131c5 100644
--- a/fs/btrfs/super.c
+++ b/fs/btrfs/super.c
@@ -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;
 }
-- 1.8.3.1 

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to