btrfs: refactor btrfs_find_device() take fs_devices as argument
[sfrench/cifs-2.6.git] / fs / btrfs / dev-replace.c
index 8750c835f53548963ad5cad5411cdbfbc3a6817b..6f0fe3623381342cadb32978619ad0ace4a610f4 100644 (file)
@@ -111,9 +111,9 @@ no_valid_dev_replace_entry_found:
                break;
        case BTRFS_IOCTL_DEV_REPLACE_STATE_STARTED:
        case BTRFS_IOCTL_DEV_REPLACE_STATE_SUSPENDED:
-               dev_replace->srcdev = btrfs_find_device(fs_info, src_devid,
-                                                       NULL, NULL);
-               dev_replace->tgtdev = btrfs_find_device(fs_info,
+               dev_replace->srcdev = btrfs_find_device(fs_info->fs_devices,
+                                                       src_devid, NULL, NULL);
+               dev_replace->tgtdev = btrfs_find_device(fs_info->fs_devices,
                                                        BTRFS_DEV_REPLACE_DEVID,
                                                        NULL, NULL);
                /*