]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - fs/btrfs/free-space-cache.c
Btrfs: output warning instead of error when loading free space cache failed
[mirror_ubuntu-artful-kernel.git] / fs / btrfs / free-space-cache.c
index 73f3de7a083c2aab0b48e0e0a53f61044dba794e..a6bd654dcd47bdb4fbc1f93dd4e901d7e99ee02a 100644 (file)
@@ -831,7 +831,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;
        }
@@ -843,7 +843,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);
        }