Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Filipe Manana and committed by
David Sterba
06493553 a4fe134f

+2 -3
+2 -3
fs/btrfs/disk-io.c
··· 3642 3642 fs_info->fs_root = btrfs_get_fs_root(fs_info, BTRFS_FS_TREE_OBJECTID, true); 3643 3643 if (IS_ERR(fs_info->fs_root)) { 3644 3644 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); 3646 3646 fs_info->fs_root = NULL; 3647 3647 goto fail_qgroup; 3648 3648 } ··· 3663 3663 btrfs_info(fs_info, "checking UUID tree"); 3664 3664 ret = btrfs_check_uuid_tree(fs_info); 3665 3665 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); 3668 3667 close_ctree(fs_info); 3669 3668 return ret; 3670 3669 }