• Home
  • Raw
  • Download

Lines Matching refs:src_device

403 	struct btrfs_device *src_device = NULL;  in btrfs_dev_replace_start()  local
405 src_device = btrfs_find_device_by_devspec(fs_info, srcdevid, in btrfs_dev_replace_start()
407 if (IS_ERR(src_device)) in btrfs_dev_replace_start()
408 return PTR_ERR(src_device); in btrfs_dev_replace_start()
410 if (btrfs_pinned_by_swapfile(fs_info, src_device)) { in btrfs_dev_replace_start()
413 btrfs_dev_name(src_device), src_device->devid); in btrfs_dev_replace_start()
431 src_device, &tgt_device); in btrfs_dev_replace_start()
450 dev_replace->srcdev = src_device; in btrfs_dev_replace_start()
455 btrfs_dev_name(src_device), in btrfs_dev_replace_start()
456 src_device->devid, in btrfs_dev_replace_start()
498 ret = btrfs_scrub_dev(fs_info, src_device->devid, 0, in btrfs_dev_replace_start()
499 btrfs_device_get_total_bytes(src_device), in btrfs_dev_replace_start()
570 struct btrfs_device *src_device; in btrfs_dev_replace_finishing() local
589 src_device = dev_replace->srcdev; in btrfs_dev_replace_finishing()
622 if (!list_empty(&src_device->post_commit_list)) { in btrfs_dev_replace_finishing()
642 src_device, in btrfs_dev_replace_finishing()
648 btrfs_dev_name(src_device), in btrfs_dev_replace_finishing()
649 src_device->devid, in btrfs_dev_replace_finishing()
665 btrfs_dev_name(src_device), in btrfs_dev_replace_finishing()
666 src_device->devid, in btrfs_dev_replace_finishing()
669 tgt_device->devid = src_device->devid; in btrfs_dev_replace_finishing()
670 src_device->devid = BTRFS_DEV_REPLACE_DEVID; in btrfs_dev_replace_finishing()
672 memcpy(tgt_device->uuid, src_device->uuid, sizeof(tgt_device->uuid)); in btrfs_dev_replace_finishing()
673 memcpy(src_device->uuid, uuid_tmp, sizeof(src_device->uuid)); in btrfs_dev_replace_finishing()
674 btrfs_device_set_total_bytes(tgt_device, src_device->total_bytes); in btrfs_dev_replace_finishing()
676 src_device->disk_total_bytes); in btrfs_dev_replace_finishing()
677 btrfs_device_set_bytes_used(tgt_device, src_device->bytes_used); in btrfs_dev_replace_finishing()
678 tgt_device->commit_bytes_used = src_device->bytes_used; in btrfs_dev_replace_finishing()
680 btrfs_assign_next_active_device(src_device, tgt_device); in btrfs_dev_replace_finishing()
688 btrfs_rm_dev_replace_remove_srcdev(src_device); in btrfs_dev_replace_finishing()
709 btrfs_sysfs_rm_device_link(fs_info->fs_devices, src_device); in btrfs_dev_replace_finishing()
710 btrfs_rm_dev_replace_free_srcdev(src_device); in btrfs_dev_replace_finishing()
801 struct btrfs_device *src_device = NULL; in btrfs_dev_replace_cancel() local
821 src_device = dev_replace->srcdev; in btrfs_dev_replace_cancel()
834 btrfs_dev_name(src_device), src_device->devid, in btrfs_dev_replace_cancel()
845 src_device = dev_replace->srcdev; in btrfs_dev_replace_cancel()
869 btrfs_dev_name(src_device), src_device->devid, in btrfs_dev_replace_cancel()