Searched refs:tgtdev (Results 1 – 6 of 6) sorted by relevance
29 struct btrfs_device *tgtdev);83 dev_replace->tgtdev = NULL; in btrfs_init_dev_replace()132 dev_replace->tgtdev = NULL; in btrfs_init_dev_replace()139 dev_replace->tgtdev = btrfs_find_device(fs_info->fs_devices, in btrfs_init_dev_replace()155 if (!dev_replace->tgtdev && in btrfs_init_dev_replace()164 if (dev_replace->tgtdev) { in btrfs_init_dev_replace()166 dev_replace->tgtdev->total_bytes = in btrfs_init_dev_replace()168 dev_replace->tgtdev->disk_total_bytes = in btrfs_init_dev_replace()170 dev_replace->tgtdev->commit_total_bytes = in btrfs_init_dev_replace()172 dev_replace->tgtdev->bytes_used = in btrfs_init_dev_replace()[all …]
2099 void btrfs_destroy_dev_replace_tgtdev(struct btrfs_device *tgtdev) in btrfs_destroy_dev_replace_tgtdev() argument2101 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()[all …]
472 void btrfs_destroy_dev_replace_tgtdev(struct btrfs_device *tgtdev);
422 dev == fs_info->dev_replace.tgtdev) { in reada_find_extent()
629 WARN_ON(!fs_info->dev_replace.tgtdev); in scrub_setup_ctx()631 sctx->wr_tgtdev = fs_info->dev_replace.tgtdev; in scrub_setup_ctx()
367 struct btrfs_device *tgtdev; member