]> git.hungrycats.org Git - linux/commitdiff
btrfs: fix misleading warning when space cache failed to load
authorHolger Hoffstätte <holger.hoffstaette@googlemail.com>
Fri, 27 Nov 2015 16:32:04 +0000 (17:32 +0100)
committerZygo Blaxell <zblaxell@serenity.furryterror.org>
Tue, 19 Jan 2016 05:18:53 +0000 (00:18 -0500)
When an inconsistent space cache is detected during loading we log a
warning that users frequently mistake as instruction to invalidate the
cache manually, even though this is not required. Fix the message to
indicate that the cache will be rebuilt automatically.

Signed-off-by: Holger Hoffstätte <holger.hoffstaette@googlemail.com>
Acked-by: Filipe Manana <fdmanana@suse.com>
(cherry picked from commit 94356889c404faf050895099fd0d23f8bef118c4)
(cherry picked from commit 29cb66cf6025b33f7f3f4830e62e7d55f340acdf)

fs/btrfs/free-space-cache.c

index 78c673b37785d50dbe084ab985de3a1d14eaf46c..26802fe2989711fc74f2dcbef1116840bfcd55d6 100644 (file)
@@ -891,7 +891,7 @@ out:
                spin_unlock(&block_group->lock);
                ret = 0;
 
-               btrfs_warn(fs_info, "failed to load free space cache for block group %llu, rebuild it now",
+               btrfs_warn(fs_info, "failed to load free space cache for block group %llu, rebuilding it now",
                        block_group->key.objectid);
        }