Lines Matching refs:srcdev
28 struct btrfs_device *srcdev,
82 dev_replace->srcdev = NULL; in btrfs_init_dev_replace()
131 dev_replace->srcdev = NULL; in btrfs_init_dev_replace()
137 dev_replace->srcdev = btrfs_find_device(fs_info->fs_devices, in btrfs_init_dev_replace()
146 if (!dev_replace->srcdev && in btrfs_init_dev_replace()
165 if (dev_replace->srcdev) { in btrfs_init_dev_replace()
167 dev_replace->srcdev->total_bytes; in btrfs_init_dev_replace()
169 dev_replace->srcdev->disk_total_bytes; in btrfs_init_dev_replace()
171 dev_replace->srcdev->commit_total_bytes; in btrfs_init_dev_replace()
173 dev_replace->srcdev->bytes_used; in btrfs_init_dev_replace()
175 dev_replace->srcdev->commit_bytes_used; in btrfs_init_dev_replace()
204 struct btrfs_device *srcdev, in btrfs_init_dev_replace_tgtdev() argument
215 if (srcdev->fs_devices->seeding) { in btrfs_init_dev_replace_tgtdev()
241 btrfs_device_get_total_bytes(srcdev)) { in btrfs_init_dev_replace_tgtdev()
269 device->total_bytes = btrfs_device_get_total_bytes(srcdev); in btrfs_init_dev_replace_tgtdev()
270 device->disk_total_bytes = btrfs_device_get_disk_total_bytes(srcdev); in btrfs_init_dev_replace_tgtdev()
271 device->bytes_used = btrfs_device_get_bytes_used(srcdev); in btrfs_init_dev_replace_tgtdev()
272 device->commit_total_bytes = srcdev->commit_total_bytes; in btrfs_init_dev_replace_tgtdev()
375 if (dev_replace->srcdev) in btrfs_run_dev_replace()
377 dev_replace->srcdev->devid); in btrfs_run_dev_replace()
472 dev_replace->srcdev = src_device; in btrfs_dev_replace_start()
510 dev_replace->srcdev = NULL; in btrfs_dev_replace_start()
610 src_device = dev_replace->srcdev; in btrfs_dev_replace_finishing()
648 dev_replace->srcdev = NULL; in btrfs_dev_replace_finishing()
739 struct btrfs_device *srcdev, in btrfs_dev_replace_update_device_in_mapping_tree() argument
755 if (srcdev == map->stripes[i].dev) in btrfs_dev_replace_update_device_in_mapping_tree()
785 dev_replace->srcdev), 1000)); in btrfs_dev_replace_progress()
836 src_device = dev_replace->srcdev; in btrfs_dev_replace_cancel()
860 src_device = dev_replace->srcdev; in btrfs_dev_replace_cancel()
862 dev_replace->srcdev = NULL; in btrfs_dev_replace_cancel()
983 btrfs_dev_name(dev_replace->srcdev), in btrfs_dev_replace_kthread()
984 dev_replace->srcdev->devid, in btrfs_dev_replace_kthread()
988 ret = btrfs_scrub_dev(fs_info, dev_replace->srcdev->devid, in btrfs_dev_replace_kthread()
990 btrfs_device_get_total_bytes(dev_replace->srcdev), in btrfs_dev_replace_kthread()