Lines Matching refs:srcdev

2239 void btrfs_rm_dev_replace_remove_srcdev(struct btrfs_device *srcdev)  in btrfs_rm_dev_replace_remove_srcdev()  argument
2243 lockdep_assert_held(&srcdev->fs_info->fs_devices->device_list_mutex); in btrfs_rm_dev_replace_remove_srcdev()
2251 fs_devices = srcdev->fs_devices; in btrfs_rm_dev_replace_remove_srcdev()
2253 list_del_rcu(&srcdev->dev_list); in btrfs_rm_dev_replace_remove_srcdev()
2254 list_del(&srcdev->dev_alloc_list); in btrfs_rm_dev_replace_remove_srcdev()
2256 if (test_bit(BTRFS_DEV_STATE_MISSING, &srcdev->dev_state)) in btrfs_rm_dev_replace_remove_srcdev()
2259 if (test_bit(BTRFS_DEV_STATE_WRITEABLE, &srcdev->dev_state)) in btrfs_rm_dev_replace_remove_srcdev()
2262 if (srcdev->bdev) in btrfs_rm_dev_replace_remove_srcdev()
2266 void btrfs_rm_dev_replace_free_srcdev(struct btrfs_device *srcdev) in btrfs_rm_dev_replace_free_srcdev() argument
2268 struct btrfs_fs_devices *fs_devices = srcdev->fs_devices; in btrfs_rm_dev_replace_free_srcdev()
2272 btrfs_close_bdev(srcdev); in btrfs_rm_dev_replace_free_srcdev()
2274 btrfs_free_device(srcdev); in btrfs_rm_dev_replace_free_srcdev()
5824 struct btrfs_device *srcdev; in find_live_mirror() local
5850 srcdev = fs_info->dev_replace.srcdev; in find_live_mirror()
5852 srcdev = NULL; in find_live_mirror()
5861 (tolerance || map->stripes[preferred_mirror].dev != srcdev)) in find_live_mirror()
5865 (tolerance || map->stripes[i].dev != srcdev)) in find_live_mirror()
6182 u64 srcdev_devid = dev_replace->srcdev->devid; in handle_ops_on_dev_replace()
6195 if (is_block_group_to_copy(dev_replace->srcdev->fs_info, logical)) in handle_ops_on_dev_replace()
6432 dev_replace->srcdev->devid, in __btrfs_map_block()