• Home
  • Raw
  • Download

Lines Matching refs:src_device

652 	struct btrfs_device *src_device = NULL;  in btrfs_dev_replace_start()  local
654 src_device = btrfs_find_device_by_devspec(fs_info, srcdevid, in btrfs_dev_replace_start()
656 if (IS_ERR(src_device)) in btrfs_dev_replace_start()
657 return PTR_ERR(src_device); in btrfs_dev_replace_start()
659 if (btrfs_pinned_by_swapfile(fs_info, src_device)) { in btrfs_dev_replace_start()
662 btrfs_dev_name(src_device), src_device->devid); in btrfs_dev_replace_start()
680 src_device, &tgt_device); in btrfs_dev_replace_start()
684 ret = mark_block_group_to_copy(fs_info, src_device); in btrfs_dev_replace_start()
703 dev_replace->srcdev = src_device; in btrfs_dev_replace_start()
708 btrfs_dev_name(src_device), in btrfs_dev_replace_start()
709 src_device->devid, in btrfs_dev_replace_start()
751 ret = btrfs_scrub_dev(fs_info, src_device->devid, 0, in btrfs_dev_replace_start()
752 btrfs_device_get_total_bytes(src_device), in btrfs_dev_replace_start()
893 struct btrfs_device *src_device; in btrfs_dev_replace_finishing() local
912 src_device = dev_replace->srcdev; in btrfs_dev_replace_finishing()
927 btrfs_reada_remove_dev(src_device); in btrfs_dev_replace_finishing()
937 btrfs_reada_undo_remove_dev(src_device); in btrfs_dev_replace_finishing()
949 if (!list_empty(&src_device->post_commit_list)) { in btrfs_dev_replace_finishing()
971 scrub_ret = btrfs_set_target_alloc_state(src_device, tgt_device); in btrfs_dev_replace_finishing()
975 src_device, in btrfs_dev_replace_finishing()
981 btrfs_dev_name(src_device), in btrfs_dev_replace_finishing()
982 src_device->devid, in btrfs_dev_replace_finishing()
988 btrfs_reada_undo_remove_dev(src_device); in btrfs_dev_replace_finishing()
1000 btrfs_dev_name(src_device), in btrfs_dev_replace_finishing()
1001 src_device->devid, in btrfs_dev_replace_finishing()
1004 tgt_device->devid = src_device->devid; in btrfs_dev_replace_finishing()
1005 src_device->devid = BTRFS_DEV_REPLACE_DEVID; in btrfs_dev_replace_finishing()
1007 memcpy(tgt_device->uuid, src_device->uuid, sizeof(tgt_device->uuid)); in btrfs_dev_replace_finishing()
1008 memcpy(src_device->uuid, uuid_tmp, sizeof(src_device->uuid)); in btrfs_dev_replace_finishing()
1009 btrfs_device_set_total_bytes(tgt_device, src_device->total_bytes); in btrfs_dev_replace_finishing()
1011 src_device->disk_total_bytes); in btrfs_dev_replace_finishing()
1012 btrfs_device_set_bytes_used(tgt_device, src_device->bytes_used); in btrfs_dev_replace_finishing()
1013 tgt_device->commit_bytes_used = src_device->bytes_used; in btrfs_dev_replace_finishing()
1015 btrfs_assign_next_active_device(src_device, tgt_device); in btrfs_dev_replace_finishing()
1023 btrfs_rm_dev_replace_remove_srcdev(src_device); in btrfs_dev_replace_finishing()
1044 btrfs_sysfs_remove_device(src_device); in btrfs_dev_replace_finishing()
1046 if (test_bit(BTRFS_DEV_STATE_WRITEABLE, &src_device->dev_state)) in btrfs_dev_replace_finishing()
1047 btrfs_scratch_superblocks(fs_info, src_device->bdev, in btrfs_dev_replace_finishing()
1048 src_device->name->str); in btrfs_dev_replace_finishing()
1057 btrfs_rm_dev_replace_free_srcdev(src_device); in btrfs_dev_replace_finishing()
1115 struct btrfs_device *src_device = NULL; in btrfs_dev_replace_cancel() local
1135 src_device = dev_replace->srcdev; in btrfs_dev_replace_cancel()
1148 btrfs_dev_name(src_device), src_device->devid, in btrfs_dev_replace_cancel()
1159 src_device = dev_replace->srcdev; in btrfs_dev_replace_cancel()
1182 btrfs_dev_name(src_device), src_device->devid, in btrfs_dev_replace_cancel()