• Home
  • Raw
  • Download

Lines Matching refs:srcdev

2374 void btrfs_rm_dev_replace_remove_srcdev(struct btrfs_device *srcdev)  in btrfs_rm_dev_replace_remove_srcdev()  argument
2378 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() argument
2403 struct btrfs_fs_info *fs_info = srcdev->fs_info; in btrfs_rm_dev_replace_free_srcdev()
2404 struct btrfs_fs_devices *fs_devices = srcdev->fs_devices; in btrfs_rm_dev_replace_free_srcdev()
2406 if (test_bit(BTRFS_DEV_STATE_WRITEABLE, &srcdev->dev_state)) { in btrfs_rm_dev_replace_free_srcdev()
2408 btrfs_scratch_superblocks(srcdev->bdev, srcdev->name->str); in btrfs_rm_dev_replace_free_srcdev()
2411 btrfs_close_bdev(srcdev); in btrfs_rm_dev_replace_free_srcdev()
2413 btrfs_free_device(srcdev); in btrfs_rm_dev_replace_free_srcdev()
5653 struct btrfs_device *srcdev; in find_live_mirror() local
5668 srcdev = fs_info->dev_replace.srcdev; in find_live_mirror()
5670 srcdev = NULL; in find_live_mirror()
5679 (tolerance || map->stripes[preferred_mirror].dev != srcdev)) in find_live_mirror()
5683 (tolerance || map->stripes[i].dev != srcdev)) in find_live_mirror()
5998 u64 srcdev_devid = dev_replace->srcdev->devid; in handle_ops_on_dev_replace()
6251 dev_replace->srcdev->devid, in __btrfs_map_block()