Skip to content

Commit 64def7d

Browse files
fdmananakdave
authored andcommitted
btrfs: remove redundant warning message in btrfs_check_uuid_tree()
If we fail to start the UUID rescan kthread, btrfs_check_uuid_tree() logs an error message and returns the error to the single caller, open_ctree(). This however is redundant since the caller already logs an error message, which is also more informative since it logs the error code. Some remove the warning message from btrfs_check_uuid_tree() as it doesn't add any value. 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 0649355 commit 64def7d

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

fs/btrfs/disk-io.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2972,7 +2972,6 @@ static int btrfs_check_uuid_tree(struct btrfs_fs_info *fs_info)
29722972
task = kthread_run(btrfs_uuid_rescan_kthread, fs_info, "btrfs-uuid");
29732973
if (IS_ERR(task)) {
29742974
/* fs_info->update_uuid_tree_gen remains 0 in all error case */
2975-
btrfs_warn(fs_info, "failed to start uuid_rescan task");
29762975
up(&fs_info->uuid_tree_rescan_sem);
29772976
return PTR_ERR(task);
29782977
}

0 commit comments

Comments
 (0)