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)
committerFilipe Manana <fdmanana@suse.com>
Thu, 10 Dec 2015 11:38:08 +0000 (11:38 +0000)
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>
fs/btrfs/free-space-cache.c

index 0948d34cb84a5f24cb2221f54b1fe5a426f451eb..7a91770d8bb2377dd790f2b208980e4c14880550 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);
        }