Searched refs:srcdev (Results 1 – 4 of 4) sorted by relevance
29 struct btrfs_device *srcdev,82 dev_replace->srcdev = NULL; in btrfs_init_dev_replace()131 dev_replace->srcdev = NULL; in btrfs_init_dev_replace()137 dev_replace->srcdev = btrfs_find_device(fs_info->fs_devices, in btrfs_init_dev_replace()146 if (!dev_replace->srcdev && in btrfs_init_dev_replace()165 if (dev_replace->srcdev) { in btrfs_init_dev_replace()167 dev_replace->srcdev->total_bytes; in btrfs_init_dev_replace()169 dev_replace->srcdev->disk_total_bytes; in btrfs_init_dev_replace()171 dev_replace->srcdev->commit_total_bytes; in btrfs_init_dev_replace()173 dev_replace->srcdev->bytes_used; in btrfs_init_dev_replace()[all …]
2374 void btrfs_rm_dev_replace_remove_srcdev(struct btrfs_device *srcdev) in btrfs_rm_dev_replace_remove_srcdev() argument2378 lockdep_assert_held(&srcdev->fs_info->fs_devices->device_list_mutex); in btrfs_rm_dev_replace_remove_srcdev()2386 fs_devices = srcdev->fs_devices; in btrfs_rm_dev_replace_remove_srcdev()2388 list_del_rcu(&srcdev->dev_list); in btrfs_rm_dev_replace_remove_srcdev()2389 list_del(&srcdev->dev_alloc_list); in btrfs_rm_dev_replace_remove_srcdev()2391 if (test_bit(BTRFS_DEV_STATE_MISSING, &srcdev->dev_state)) in btrfs_rm_dev_replace_remove_srcdev()2394 if (test_bit(BTRFS_DEV_STATE_WRITEABLE, &srcdev->dev_state)) in btrfs_rm_dev_replace_remove_srcdev()2397 if (srcdev->bdev) in btrfs_rm_dev_replace_remove_srcdev()2401 void btrfs_rm_dev_replace_free_srcdev(struct btrfs_device *srcdev) in btrfs_rm_dev_replace_free_srcdev() argument2403 struct btrfs_fs_info *fs_info = srcdev->fs_info; in btrfs_rm_dev_replace_free_srcdev()[all …]
485 void btrfs_rm_dev_replace_remove_srcdev(struct btrfs_device *srcdev);486 void btrfs_rm_dev_replace_free_srcdev(struct btrfs_device *srcdev);
385 struct btrfs_device *srcdev; member