Searched refs:tgtdev (Results 1 – 6 of 6) sorted by relevance
119 dev_replace->tgtdev = NULL; in btrfs_init_dev_replace()168 dev_replace->tgtdev = NULL; in btrfs_init_dev_replace()175 dev_replace->tgtdev = btrfs_find_device(fs_info->fs_devices, in btrfs_init_dev_replace()191 if (!dev_replace->tgtdev && in btrfs_init_dev_replace()200 if (dev_replace->tgtdev) { in btrfs_init_dev_replace()202 dev_replace->tgtdev->total_bytes = in btrfs_init_dev_replace()204 dev_replace->tgtdev->disk_total_bytes = in btrfs_init_dev_replace()206 dev_replace->tgtdev->commit_total_bytes = in btrfs_init_dev_replace()208 dev_replace->tgtdev->bytes_used = in btrfs_init_dev_replace()210 dev_replace->tgtdev->commit_bytes_used = in btrfs_init_dev_replace()[all …]
2335 void btrfs_destroy_dev_replace_tgtdev(struct btrfs_device *tgtdev) in btrfs_destroy_dev_replace_tgtdev() argument2337 struct btrfs_fs_devices *fs_devices = tgtdev->fs_info->fs_devices; in btrfs_destroy_dev_replace_tgtdev()2341 btrfs_sysfs_remove_device(tgtdev); in btrfs_destroy_dev_replace_tgtdev()2343 if (tgtdev->bdev) in btrfs_destroy_dev_replace_tgtdev()2348 btrfs_assign_next_active_device(tgtdev, NULL); in btrfs_destroy_dev_replace_tgtdev()2350 list_del_rcu(&tgtdev->dev_list); in btrfs_destroy_dev_replace_tgtdev()2361 btrfs_scratch_superblocks(tgtdev->fs_info, tgtdev->bdev, in btrfs_destroy_dev_replace_tgtdev()2362 tgtdev->name->str); in btrfs_destroy_dev_replace_tgtdev()2364 btrfs_close_bdev(tgtdev); in btrfs_destroy_dev_replace_tgtdev()2366 btrfs_free_device(tgtdev); in btrfs_destroy_dev_replace_tgtdev()[all …]
481 void btrfs_destroy_dev_replace_tgtdev(struct btrfs_device *tgtdev);
428 dev == fs_info->dev_replace.tgtdev) { in reada_find_extent()
623 WARN_ON(!fs_info->dev_replace.tgtdev); in scrub_setup_ctx()625 sctx->wr_tgtdev = fs_info->dev_replace.tgtdev; in scrub_setup_ctx()
398 struct btrfs_device *tgtdev; member