Home
last modified time | relevance | path

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

/linux-4.19.296/fs/btrfs/
Ddev-replace.c29 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.c2099 void btrfs_destroy_dev_replace_tgtdev(struct btrfs_device *tgtdev) in btrfs_destroy_dev_replace_tgtdev() argument
2101 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 …]
Dvolumes.h472 void btrfs_destroy_dev_replace_tgtdev(struct btrfs_device *tgtdev);
Dreada.c422 dev == fs_info->dev_replace.tgtdev) { in reada_find_extent()
Dscrub.c629 WARN_ON(!fs_info->dev_replace.tgtdev); in scrub_setup_ctx()
631 sctx->wr_tgtdev = fs_info->dev_replace.tgtdev; in scrub_setup_ctx()
Dctree.h367 struct btrfs_device *tgtdev; member