Lines Matching refs:tgtdev
2099 void btrfs_destroy_dev_replace_tgtdev(struct btrfs_device *tgtdev) in btrfs_destroy_dev_replace_tgtdev() argument
2101 struct btrfs_fs_devices *fs_devices = tgtdev->fs_info->fs_devices; in btrfs_destroy_dev_replace_tgtdev()
2103 WARN_ON(!tgtdev); in btrfs_destroy_dev_replace_tgtdev()
2106 btrfs_sysfs_rm_device_link(fs_devices, tgtdev); in btrfs_destroy_dev_replace_tgtdev()
2108 if (tgtdev->bdev) in btrfs_destroy_dev_replace_tgtdev()
2113 btrfs_assign_next_active_device(tgtdev, NULL); in btrfs_destroy_dev_replace_tgtdev()
2115 list_del_rcu(&tgtdev->dev_list); in btrfs_destroy_dev_replace_tgtdev()
2126 btrfs_scratch_superblocks(tgtdev->bdev, tgtdev->name->str); in btrfs_destroy_dev_replace_tgtdev()
2128 btrfs_close_bdev(tgtdev); in btrfs_destroy_dev_replace_tgtdev()
2129 call_rcu(&tgtdev->rcu, free_device_rcu); in btrfs_destroy_dev_replace_tgtdev()
5155 fs_info->dev_replace.tgtdev) in btrfs_num_copies()
5579 new->dev = dev_replace->tgtdev; in handle_ops_on_dev_replace()
5622 tgtdev_stripe->dev = dev_replace->tgtdev; in handle_ops_on_dev_replace()
5743 !need_full_stripe(op) && dev_replace->tgtdev != NULL) { in __btrfs_map_block()
5851 if (dev_replace_is_ongoing && dev_replace->tgtdev != NULL) { in __btrfs_map_block()
5864 if (dev_replace_is_ongoing && dev_replace->tgtdev != NULL) in __btrfs_map_block()
5910 if (dev_replace_is_ongoing && dev_replace->tgtdev != NULL && in __btrfs_map_block()
5929 bbio->stripes[0].dev = dev_replace->tgtdev; in __btrfs_map_block()