Lines Matching refs:tgtdev
2302 void btrfs_destroy_dev_replace_tgtdev(struct btrfs_device *tgtdev) in btrfs_destroy_dev_replace_tgtdev() argument
2304 struct btrfs_fs_devices *fs_devices = tgtdev->fs_info->fs_devices; in btrfs_destroy_dev_replace_tgtdev()
2308 btrfs_sysfs_remove_device(tgtdev); in btrfs_destroy_dev_replace_tgtdev()
2310 if (tgtdev->bdev) in btrfs_destroy_dev_replace_tgtdev()
2315 btrfs_assign_next_active_device(tgtdev, NULL); in btrfs_destroy_dev_replace_tgtdev()
2317 list_del_rcu(&tgtdev->dev_list); in btrfs_destroy_dev_replace_tgtdev()
2321 btrfs_scratch_superblocks(tgtdev->fs_info, tgtdev->bdev, in btrfs_destroy_dev_replace_tgtdev()
2322 tgtdev->name->str); in btrfs_destroy_dev_replace_tgtdev()
2324 btrfs_close_bdev(tgtdev); in btrfs_destroy_dev_replace_tgtdev()
2326 btrfs_free_device(tgtdev); in btrfs_destroy_dev_replace_tgtdev()
5777 fs_info->dev_replace.tgtdev) in btrfs_num_copies()
6228 new->dev = dev_replace->tgtdev; in handle_ops_on_dev_replace()
6268 tgtdev_stripe->dev = dev_replace->tgtdev; in handle_ops_on_dev_replace()
6439 !need_full_stripe(op) && dev_replace->tgtdev != NULL) { in __btrfs_map_block()
6550 if (dev_replace_is_ongoing && dev_replace->tgtdev != NULL) { in __btrfs_map_block()
6566 !dev_replace->tgtdev)) { in __btrfs_map_block()
6568 smap->dev = dev_replace->tgtdev; in __btrfs_map_block()
6619 if (dev_replace_is_ongoing && dev_replace->tgtdev != NULL && in __btrfs_map_block()
6638 bioc->stripes[0].dev = dev_replace->tgtdev; in __btrfs_map_block()