Home
last modified time | relevance | path

Searched refs:tgtdev (Results 1 – 6 of 6) sorted by relevance

/fs/btrfs/
Ddev-replace.c30 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 …]
Dvolumes.c2441 void btrfs_destroy_dev_replace_tgtdev(struct btrfs_device *tgtdev) in btrfs_destroy_dev_replace_tgtdev() argument
2443 struct btrfs_fs_devices *fs_devices = tgtdev->fs_info->fs_devices; in btrfs_destroy_dev_replace_tgtdev()
2445 WARN_ON(!tgtdev); in btrfs_destroy_dev_replace_tgtdev()
2448 btrfs_sysfs_rm_device_link(fs_devices, tgtdev); in btrfs_destroy_dev_replace_tgtdev()
2450 if (tgtdev->bdev) in btrfs_destroy_dev_replace_tgtdev()
2455 btrfs_assign_next_active_device(tgtdev, NULL); in btrfs_destroy_dev_replace_tgtdev()
2457 list_del_rcu(&tgtdev->dev_list); in btrfs_destroy_dev_replace_tgtdev()
2468 btrfs_scratch_superblocks(tgtdev->bdev, tgtdev->name->str); in btrfs_destroy_dev_replace_tgtdev()
2470 btrfs_close_bdev(tgtdev); in btrfs_destroy_dev_replace_tgtdev()
2472 btrfs_free_device(tgtdev); in btrfs_destroy_dev_replace_tgtdev()
[all …]
Dvolumes.h487 void btrfs_destroy_dev_replace_tgtdev(struct btrfs_device *tgtdev);
Dreada.c428 dev == fs_info->dev_replace.tgtdev) { in reada_find_extent()
Dscrub.c623 WARN_ON(!fs_info->dev_replace.tgtdev); in scrub_setup_ctx()
625 sctx->wr_tgtdev = fs_info->dev_replace.tgtdev; in scrub_setup_ctx()
Dctree.h386 struct btrfs_device *tgtdev; member