Lines Matching defs:srcdev
2332 void btrfs_rm_dev_replace_remove_srcdev(struct btrfs_device *srcdev)
2336 lockdep_assert_held(&srcdev->fs_info->fs_devices->device_list_mutex);
2339 * in case of fs with no seed, srcdev->fs_devices will point
2342 * srcdev will have its correct fs_devices in both the cases.
2344 fs_devices = srcdev->fs_devices;
2346 list_del_rcu(&srcdev->dev_list);
2347 list_del(&srcdev->dev_alloc_list);
2349 if (test_bit(BTRFS_DEV_STATE_MISSING, &srcdev->dev_state))
2352 if (test_bit(BTRFS_DEV_STATE_WRITEABLE, &srcdev->dev_state))
2355 if (srcdev->bdev)
2359 void btrfs_rm_dev_replace_free_srcdev(struct btrfs_device *srcdev)
2361 struct btrfs_fs_devices *fs_devices = srcdev->fs_devices;
2365 btrfs_close_bdev(srcdev);
2367 btrfs_free_device(srcdev);
5967 struct btrfs_device *srcdev;
6000 srcdev = fs_info->dev_replace.srcdev;
6002 srcdev = NULL;
6011 (tolerance || map->stripes[preferred_mirror].dev != srcdev))
6015 (tolerance || map->stripes[i].dev != srcdev))
6224 u64 srcdev_devid = dev_replace->srcdev->devid;
6238 if (is_block_group_to_copy(dev_replace->srcdev->fs_info, logical))