Searched refs:tgt_device (Results 1 - 1 of 1) sorted by relevance

/linux-4.1.27/fs/btrfs/
H A Ddev-replace.c316 struct btrfs_device *tgt_device = NULL; btrfs_dev_replace_start() local
355 src_device, &tgt_device); btrfs_dev_replace_start()
376 WARN_ON(!tgt_device); btrfs_dev_replace_start()
377 dev_replace->tgtdev = tgt_device; btrfs_dev_replace_start()
384 rcu_str_deref(tgt_device->name)); btrfs_dev_replace_start()
434 btrfs_destroy_dev_replace_tgtdev(fs_info, tgt_device); btrfs_dev_replace_start()
462 struct btrfs_device *tgt_device; btrfs_dev_replace_finishing() local
481 tgt_device = dev_replace->tgtdev; btrfs_dev_replace_finishing()
521 tgt_device); btrfs_dev_replace_finishing()
528 rcu_str_deref(tgt_device->name), scrub_ret); btrfs_dev_replace_finishing()
533 if (tgt_device) btrfs_dev_replace_finishing()
534 btrfs_destroy_dev_replace_tgtdev(fs_info, tgt_device); btrfs_dev_replace_finishing()
545 rcu_str_deref(tgt_device->name)); btrfs_dev_replace_finishing()
546 tgt_device->is_tgtdev_for_dev_replace = 0; btrfs_dev_replace_finishing()
547 tgt_device->devid = src_device->devid; btrfs_dev_replace_finishing()
549 memcpy(uuid_tmp, tgt_device->uuid, sizeof(uuid_tmp)); btrfs_dev_replace_finishing()
550 memcpy(tgt_device->uuid, src_device->uuid, sizeof(tgt_device->uuid)); btrfs_dev_replace_finishing()
552 btrfs_device_set_total_bytes(tgt_device, src_device->total_bytes); btrfs_dev_replace_finishing()
553 btrfs_device_set_disk_total_bytes(tgt_device, btrfs_dev_replace_finishing()
555 btrfs_device_set_bytes_used(tgt_device, src_device->bytes_used); btrfs_dev_replace_finishing()
557 tgt_device->commit_total_bytes = src_device->commit_total_bytes; btrfs_dev_replace_finishing()
558 tgt_device->commit_bytes_used = src_device->bytes_used; btrfs_dev_replace_finishing()
560 fs_info->sb->s_bdev = tgt_device->bdev; btrfs_dev_replace_finishing()
562 fs_info->fs_devices->latest_bdev = tgt_device->bdev; btrfs_dev_replace_finishing()
563 list_add(&tgt_device->dev_alloc_list, &fs_info->fs_devices->alloc_list); btrfs_dev_replace_finishing()
587 btrfs_kobj_add_device(fs_info, tgt_device); btrfs_dev_replace_finishing()
690 struct btrfs_device *tgt_device = NULL; __btrfs_dev_replace_cancel() local
711 tgt_device = dev_replace->tgtdev; __btrfs_dev_replace_cancel()
729 if (tgt_device) __btrfs_dev_replace_cancel()
730 btrfs_destroy_dev_replace_tgtdev(fs_info, tgt_device); __btrfs_dev_replace_cancel()

Completed in 79 milliseconds