• Home
  • Raw
  • Download

Lines Matching refs:srcdev

118 		dev_replace->srcdev = NULL;  in btrfs_init_dev_replace()
167 dev_replace->srcdev = NULL; in btrfs_init_dev_replace()
173 dev_replace->srcdev = btrfs_find_device(fs_info->fs_devices, in btrfs_init_dev_replace()
182 if (!dev_replace->srcdev && in btrfs_init_dev_replace()
201 if (dev_replace->srcdev) { in btrfs_init_dev_replace()
203 dev_replace->srcdev->total_bytes; in btrfs_init_dev_replace()
205 dev_replace->srcdev->disk_total_bytes; in btrfs_init_dev_replace()
207 dev_replace->srcdev->commit_total_bytes; in btrfs_init_dev_replace()
209 dev_replace->srcdev->bytes_used; in btrfs_init_dev_replace()
211 dev_replace->srcdev->commit_bytes_used; in btrfs_init_dev_replace()
240 struct btrfs_device *srcdev, in btrfs_init_dev_replace_tgtdev() argument
250 if (srcdev->fs_devices->seeding) { in btrfs_init_dev_replace_tgtdev()
275 btrfs_device_get_total_bytes(srcdev)) { in btrfs_init_dev_replace_tgtdev()
302 device->total_bytes = btrfs_device_get_total_bytes(srcdev); in btrfs_init_dev_replace_tgtdev()
303 device->disk_total_bytes = btrfs_device_get_disk_total_bytes(srcdev); in btrfs_init_dev_replace_tgtdev()
304 device->bytes_used = btrfs_device_get_bytes_used(srcdev); in btrfs_init_dev_replace_tgtdev()
305 device->commit_total_bytes = srcdev->commit_total_bytes; in btrfs_init_dev_replace_tgtdev()
410 if (dev_replace->srcdev) in btrfs_run_dev_replace()
412 dev_replace->srcdev->devid); in btrfs_run_dev_replace()
506 dev_replace->srcdev = src_device; in btrfs_dev_replace_start()
544 dev_replace->srcdev = NULL; in btrfs_dev_replace_start()
640 static int btrfs_set_target_alloc_state(struct btrfs_device *srcdev, in btrfs_set_target_alloc_state() argument
649 lockdep_assert_held(&srcdev->fs_info->chunk_mutex); in btrfs_set_target_alloc_state()
651 while (!find_first_extent_bit(&srcdev->alloc_state, start, in btrfs_set_target_alloc_state()
667 struct btrfs_device *srcdev, in btrfs_dev_replace_update_device_in_mapping_tree() argument
683 if (srcdev == map->stripes[i].dev) in btrfs_dev_replace_update_device_in_mapping_tree()
715 src_device = dev_replace->srcdev; in btrfs_dev_replace_finishing()
765 dev_replace->srcdev = NULL; in btrfs_dev_replace_finishing()
887 dev_replace->srcdev), 1000)); in btrfs_dev_replace_progress()
938 src_device = dev_replace->srcdev; in btrfs_dev_replace_cancel()
962 src_device = dev_replace->srcdev; in btrfs_dev_replace_cancel()
964 dev_replace->srcdev = NULL; in btrfs_dev_replace_cancel()
1089 btrfs_dev_name(dev_replace->srcdev), in btrfs_dev_replace_kthread()
1090 dev_replace->srcdev->devid, in btrfs_dev_replace_kthread()
1094 ret = btrfs_scrub_dev(fs_info, dev_replace->srcdev->devid, in btrfs_dev_replace_kthread()
1096 btrfs_device_get_total_bytes(dev_replace->srcdev), in btrfs_dev_replace_kthread()