Skip to content

Commit 0649355

Browse files
fdmananakdave
authored andcommitted
btrfs: change warning messages to error level in open_ctree()
Failure to read the fs root results in a mount error, but we log a warning message. Same goes for checking the UUID tree, an error results in a mount failure but we log a warning message. Change the level of the logged messages from warning to error. Reviewed-by: Qu Wenruo <wqu@suse.com> Signed-off-by: Filipe Manana <fdmanana@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
1 parent a4fe134 commit 0649355

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

fs/btrfs/disk-io.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3642,7 +3642,7 @@ int __cold open_ctree(struct super_block *sb, struct btrfs_fs_devices *fs_device
36423642
fs_info->fs_root = btrfs_get_fs_root(fs_info, BTRFS_FS_TREE_OBJECTID, true);
36433643
if (IS_ERR(fs_info->fs_root)) {
36443644
ret = PTR_ERR(fs_info->fs_root);
3645-
btrfs_warn(fs_info, "failed to read fs tree: %d", ret);
3645+
btrfs_err(fs_info, "failed to read fs tree: %d", ret);
36463646
fs_info->fs_root = NULL;
36473647
goto fail_qgroup;
36483648
}
@@ -3663,8 +3663,7 @@ int __cold open_ctree(struct super_block *sb, struct btrfs_fs_devices *fs_device
36633663
btrfs_info(fs_info, "checking UUID tree");
36643664
ret = btrfs_check_uuid_tree(fs_info);
36653665
if (ret) {
3666-
btrfs_warn(fs_info,
3667-
"failed to check the UUID tree: %d", ret);
3666+
btrfs_err(fs_info, "failed to check the UUID tree: %d", ret);
36683667
close_ctree(fs_info);
36693668
return ret;
36703669
}

0 commit comments

Comments
 (0)