diff options
author | Miao Xie <miaox@cn.fujitsu.com> | 2014-04-24 13:31:55 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-06-30 20:09:45 -0700 |
commit | 87d7177149733a17cdcf6424b329c8f9be6d4b7c (patch) | |
tree | 7035a29626cb3ebf0f0f9bf437e5d2ec747b6b54 | |
parent | de0914339196e139a21bfb1d82db0465afb4ed6c (diff) | |
download | linux-3.10-87d7177149733a17cdcf6424b329c8f9be6d4b7c.tar.gz linux-3.10-87d7177149733a17cdcf6424b329c8f9be6d4b7c.tar.bz2 linux-3.10-87d7177149733a17cdcf6424b329c8f9be6d4b7c.zip |
Btrfs: output warning instead of error when loading free space cache failed
commit 32d6b47fe6fc1714d5f1bba1b9f38e0ab0ad58a8 upstream.
If we fail to load a free space cache, we can rebuild it from the extent tree,
so it is not a serious error, we should not output a error message that
would make the users uncomfortable. This patch uses warning message instead
of it.
Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Chris Mason <clm@fb.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | fs/btrfs/free-space-cache.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/free-space-cache.c b/fs/btrfs/free-space-cache.c index e53009657f0..0cbe95dc811 100644 --- a/fs/btrfs/free-space-cache.c +++ b/fs/btrfs/free-space-cache.c @@ -835,7 +835,7 @@ int load_free_space_cache(struct btrfs_fs_info *fs_info, if (!matched) { __btrfs_remove_free_space_cache(ctl); - btrfs_err(fs_info, "block group %llu has wrong amount of free space", + btrfs_warn(fs_info, "block group %llu has wrong amount of free space", block_group->key.objectid); ret = -1; } @@ -847,7 +847,7 @@ out: spin_unlock(&block_group->lock); ret = 0; - btrfs_err(fs_info, "failed to load free space cache for block group %llu", + btrfs_warn(fs_info, "failed to load free space cache for block group %llu, rebuild it now", block_group->key.objectid); } |