|
@@ -320,10 +320,6 @@ int btrfs_dev_replace_start(struct btrfs_root *root,
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
}
|
|
}
|
|
|
|
|
|
- if ((args->start.srcdevid == 0 && args->start.srcdev_name[0] == '\0') ||
|
|
|
|
- args->start.tgtdev_name[0] == '\0')
|
|
|
|
- return -EINVAL;
|
|
|
|
-
|
|
|
|
/* the disk copy procedure reuses the scrub code */
|
|
/* the disk copy procedure reuses the scrub code */
|
|
mutex_lock(&fs_info->volume_mutex);
|
|
mutex_lock(&fs_info->volume_mutex);
|
|
ret = btrfs_find_device_by_user_input(root, args->start.srcdevid,
|
|
ret = btrfs_find_device_by_user_input(root, args->start.srcdevid,
|