Searched refs:srcdev (Results 1 – 4 of 4) sorted by relevance
118 dev_replace->srcdev = NULL; in btrfs_init_dev_replace()167 dev_replace->srcdev = NULL; in btrfs_init_dev_replace()173 dev_replace->srcdev = btrfs_find_device(fs_info->fs_devices, in btrfs_init_dev_replace()182 if (!dev_replace->srcdev && in btrfs_init_dev_replace()201 if (dev_replace->srcdev) { in btrfs_init_dev_replace()203 dev_replace->srcdev->total_bytes; in btrfs_init_dev_replace()205 dev_replace->srcdev->disk_total_bytes; in btrfs_init_dev_replace()207 dev_replace->srcdev->commit_total_bytes; in btrfs_init_dev_replace()209 dev_replace->srcdev->bytes_used; in btrfs_init_dev_replace()211 dev_replace->srcdev->commit_bytes_used; in btrfs_init_dev_replace()[all …]
479 void btrfs_rm_dev_replace_remove_srcdev(struct btrfs_device *srcdev);480 void btrfs_rm_dev_replace_free_srcdev(struct btrfs_device *srcdev);
2282 void btrfs_rm_dev_replace_remove_srcdev(struct btrfs_device *srcdev) in btrfs_rm_dev_replace_remove_srcdev() argument2286 lockdep_assert_held(&srcdev->fs_info->fs_devices->device_list_mutex); in btrfs_rm_dev_replace_remove_srcdev()2294 fs_devices = srcdev->fs_devices; in btrfs_rm_dev_replace_remove_srcdev()2296 list_del_rcu(&srcdev->dev_list); in btrfs_rm_dev_replace_remove_srcdev()2297 list_del(&srcdev->dev_alloc_list); in btrfs_rm_dev_replace_remove_srcdev()2299 if (test_bit(BTRFS_DEV_STATE_MISSING, &srcdev->dev_state)) in btrfs_rm_dev_replace_remove_srcdev()2302 if (test_bit(BTRFS_DEV_STATE_WRITEABLE, &srcdev->dev_state)) in btrfs_rm_dev_replace_remove_srcdev()2305 if (srcdev->bdev) in btrfs_rm_dev_replace_remove_srcdev()2309 void btrfs_rm_dev_replace_free_srcdev(struct btrfs_device *srcdev) in btrfs_rm_dev_replace_free_srcdev() argument2311 struct btrfs_fs_devices *fs_devices = srcdev->fs_devices; in btrfs_rm_dev_replace_free_srcdev()[all …]
397 struct btrfs_device *srcdev; member