projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de09143
)
Btrfs: output warning instead of error when loading free space cache failed
author
Miao Xie
<miaox@cn.fujitsu.com>
Thu, 24 Apr 2014 05:31:55 +0000
(13:31 +0800)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Tue, 1 Jul 2014 03:09:45 +0000
(20:09 -0700)
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>
fs/btrfs/free-space-cache.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/btrfs/free-space-cache.c
b/fs/btrfs/free-space-cache.c
index e53009657f0e5b91b638f3d31d5e4d2cbf919f62..0cbe95dc81135639db58f2c941760b26cf4f842d 100644
(file)
--- 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);
}