Lines Matching defs:srcdev
2285 void btrfs_rm_dev_replace_remove_srcdev(struct btrfs_device *srcdev)
2289 lockdep_assert_held(&srcdev->fs_info->fs_devices->device_list_mutex);
2292 * in case of fs with no seed, srcdev->fs_devices will point
2295 * srcdev will have its correct fs_devices in both the cases.
2297 fs_devices = srcdev->fs_devices;
2299 list_del_rcu(&srcdev->dev_list);
2300 list_del(&srcdev->dev_alloc_list);
2302 if (test_bit(BTRFS_DEV_STATE_MISSING, &srcdev->dev_state))
2305 if (test_bit(BTRFS_DEV_STATE_WRITEABLE, &srcdev->dev_state))
2308 if (srcdev->bdev)
2312 void btrfs_rm_dev_replace_free_srcdev(struct btrfs_device *srcdev)
2314 struct btrfs_fs_devices *fs_devices = srcdev->fs_devices;
2318 btrfs_close_bdev(srcdev);
2320 btrfs_free_device(srcdev);
6054 struct btrfs_device *srcdev;
6079 srcdev = fs_info->dev_replace.srcdev;
6081 srcdev = NULL;
6090 (tolerance || map->stripes[preferred_mirror].dev != srcdev))
6094 (tolerance || map->stripes[i].dev != srcdev))
6309 u64 srcdev_devid = dev_replace->srcdev->devid;
6323 if (is_block_group_to_copy(dev_replace->srcdev->fs_info, logical))