Searched refs:tgtdev (Results 1 – 7 of 7) sorted by relevance
124 dev_replace->tgtdev = NULL; in btrfs_init_dev_replace()172 dev_replace->tgtdev = NULL; in btrfs_init_dev_replace()177 dev_replace->tgtdev = btrfs_find_device(fs_info->fs_devices, &args); in btrfs_init_dev_replace()194 if (!dev_replace->tgtdev && in btrfs_init_dev_replace()203 if (dev_replace->tgtdev) { in btrfs_init_dev_replace()205 dev_replace->tgtdev->total_bytes = in btrfs_init_dev_replace()207 dev_replace->tgtdev->disk_total_bytes = in btrfs_init_dev_replace()209 dev_replace->tgtdev->commit_total_bytes = in btrfs_init_dev_replace()211 dev_replace->tgtdev->bytes_used = in btrfs_init_dev_replace()213 dev_replace->tgtdev->commit_bytes_used = in btrfs_init_dev_replace()[all …]
2337 void btrfs_destroy_dev_replace_tgtdev(struct btrfs_device *tgtdev) in btrfs_destroy_dev_replace_tgtdev() argument2339 struct btrfs_fs_devices *fs_devices = tgtdev->fs_info->fs_devices; in btrfs_destroy_dev_replace_tgtdev()2343 btrfs_sysfs_remove_device(tgtdev); in btrfs_destroy_dev_replace_tgtdev()2345 if (tgtdev->bdev) in btrfs_destroy_dev_replace_tgtdev()2350 btrfs_assign_next_active_device(tgtdev, NULL); in btrfs_destroy_dev_replace_tgtdev()2352 list_del_rcu(&tgtdev->dev_list); in btrfs_destroy_dev_replace_tgtdev()2356 btrfs_scratch_superblocks(tgtdev->fs_info, tgtdev->bdev, in btrfs_destroy_dev_replace_tgtdev()2357 tgtdev->name->str); in btrfs_destroy_dev_replace_tgtdev()2359 btrfs_close_bdev(tgtdev); in btrfs_destroy_dev_replace_tgtdev()2361 btrfs_free_device(tgtdev); in btrfs_destroy_dev_replace_tgtdev()[all …]
679 void btrfs_destroy_dev_replace_tgtdev(struct btrfs_device *tgtdev);
1383 if (dev_replace_is_ongoing && dev_replace->tgtdev != NULL) in btrfs_load_block_group_zone_info()1384 btrfs_dev_clear_zone_empty(dev_replace->tgtdev, physical[i]); in btrfs_load_block_group_zone_info()
785 WARN_ON(!fs_info->dev_replace.tgtdev); in scrub_setup_ctx()786 sctx->wr_tgtdev = fs_info->dev_replace.tgtdev; in scrub_setup_ctx()
468 struct btrfs_device *tgtdev; member
1303 ret = btrfs_reset_device_zone(dev_replace->tgtdev, phys, len, in do_discard_extent()