Skip to content

Commit

Permalink
btrfs: fix misleading warning when space cache failed to load
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Holger Hoffstätte authored and Filipe Manana committed Dec 10, 2015
1 parent 8a7d656 commit 9435688
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/btrfs/free-space-cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -891,7 +891,7 @@ int load_free_space_cache(struct btrfs_fs_info *fs_info,
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);
}

Expand Down

0 comments on commit 9435688

Please sign in to comment.