Lines Matching defs:srcdev
2282 void btrfs_rm_dev_replace_remove_srcdev(struct btrfs_device *srcdev)
2286 lockdep_assert_held(&srcdev->fs_info->fs_devices->device_list_mutex);
2289 * in case of fs with no seed, srcdev->fs_devices will point
2292 * srcdev will have its correct fs_devices in both the cases.
2294 fs_devices = srcdev->fs_devices;
2296 list_del_rcu(&srcdev->dev_list);
2297 list_del(&srcdev->dev_alloc_list);
2299 if (test_bit(BTRFS_DEV_STATE_MISSING, &srcdev->dev_state))
2302 if (test_bit(BTRFS_DEV_STATE_WRITEABLE, &srcdev->dev_state))
2305 if (srcdev->bdev)
2309 void btrfs_rm_dev_replace_free_srcdev(struct btrfs_device *srcdev)
2311 struct btrfs_fs_devices *fs_devices = srcdev->fs_devices;
2315 btrfs_close_bdev(srcdev);
2317 btrfs_free_device(srcdev);
5569 struct btrfs_device *srcdev;
5584 srcdev = fs_info->dev_replace.srcdev;
5586 srcdev = NULL;
5595 (tolerance || map->stripes[preferred_mirror].dev != srcdev))
5599 (tolerance || map->stripes[i].dev != srcdev))
5905 u64 srcdev_devid = dev_replace->srcdev->devid;
6155 dev_replace->srcdev->devid,