Searched refs:srcdev (Results 1 – 8 of 8) sorted by relevance
125 dev_replace->srcdev = NULL; in btrfs_init_dev_replace()173 dev_replace->srcdev = NULL; in btrfs_init_dev_replace()181 dev_replace->srcdev = btrfs_find_device(fs_info->fs_devices, &args); in btrfs_init_dev_replace()187 if (!dev_replace->srcdev && in btrfs_init_dev_replace()206 if (dev_replace->srcdev) { in btrfs_init_dev_replace()208 dev_replace->srcdev->total_bytes; in btrfs_init_dev_replace()210 dev_replace->srcdev->disk_total_bytes; in btrfs_init_dev_replace()212 dev_replace->srcdev->commit_total_bytes; in btrfs_init_dev_replace()214 dev_replace->srcdev->bytes_used; in btrfs_init_dev_replace()216 dev_replace->srcdev->commit_bytes_used; in btrfs_init_dev_replace()[all …]
25 bool btrfs_finish_block_group_to_copy(struct btrfs_device *srcdev,
659 void btrfs_rm_dev_replace_remove_srcdev(struct btrfs_device *srcdev);660 void btrfs_rm_dev_replace_free_srcdev(struct btrfs_device *srcdev);
2262 void btrfs_rm_dev_replace_remove_srcdev(struct btrfs_device *srcdev) in btrfs_rm_dev_replace_remove_srcdev() argument2266 lockdep_assert_held(&srcdev->fs_info->fs_devices->device_list_mutex); in btrfs_rm_dev_replace_remove_srcdev()2274 fs_devices = srcdev->fs_devices; in btrfs_rm_dev_replace_remove_srcdev()2276 list_del_rcu(&srcdev->dev_list); in btrfs_rm_dev_replace_remove_srcdev()2277 list_del(&srcdev->dev_alloc_list); in btrfs_rm_dev_replace_remove_srcdev()2279 if (test_bit(BTRFS_DEV_STATE_MISSING, &srcdev->dev_state)) in btrfs_rm_dev_replace_remove_srcdev()2282 if (test_bit(BTRFS_DEV_STATE_WRITEABLE, &srcdev->dev_state)) in btrfs_rm_dev_replace_remove_srcdev()2285 if (srcdev->bdev) in btrfs_rm_dev_replace_remove_srcdev()2289 void btrfs_rm_dev_replace_free_srcdev(struct btrfs_device *srcdev) in btrfs_rm_dev_replace_free_srcdev() argument2291 struct btrfs_fs_devices *fs_devices = srcdev->fs_devices; in btrfs_rm_dev_replace_free_srcdev()[all …]
264 struct btrfs_device *srcdev; member
828 ASSERT(smap.dev == fs_info->dev_replace.srcdev); in btrfs_submit_repair_write()
1777 ASSERT(stripe->dev == fs_info->dev_replace.srcdev); in flush_scrub_stripes()2624 !btrfs_finish_block_group_to_copy(dev_replace->srcdev, in scrub_enumerate_chunks()
1335 dev != dev_replace->srcdev) in do_discard_extent()