Lines Matching refs:dev

24 	struct btrfs_device *dev;  in btrfs_device_by_devid()  local
26 list_for_each_entry(dev, &fs_devices->devices, dev_list) { in btrfs_device_by_devid()
27 if (dev->devid == devid) in btrfs_device_by_devid()
28 return dev; in btrfs_device_by_devid()
61 io_stripe.dev = btrfs_device_by_devid(fs_info->fs_devices, 0); in test_punch_hole_3extents()
70 stripe->dev = btrfs_device_by_devid(fs_info->fs_devices, i); in test_punch_hole_3extents()
71 if (!stripe->dev) { in test_punch_hole_3extents()
91 stripe->dev = btrfs_device_by_devid(fs_info->fs_devices, i); in test_punch_hole_3extents()
92 if (!stripe->dev) { in test_punch_hole_3extents()
112 stripe->dev = btrfs_device_by_devid(fs_info->fs_devices, i); in test_punch_hole_3extents()
113 if (!stripe->dev) { in test_punch_hole_3extents()
237 io_stripe.dev = btrfs_device_by_devid(fs_info->fs_devices, 0); in test_delete_two_extents()
246 stripe->dev = btrfs_device_by_devid(fs_info->fs_devices, i); in test_delete_two_extents()
247 if (!stripe->dev) { in test_delete_two_extents()
267 stripe->dev = btrfs_device_by_devid(fs_info->fs_devices, i); in test_delete_two_extents()
268 if (!stripe->dev) { in test_delete_two_extents()
288 stripe->dev = btrfs_device_by_devid(fs_info->fs_devices, i); in test_delete_two_extents()
289 if (!stripe->dev) { in test_delete_two_extents()
382 io_stripe.dev = btrfs_device_by_devid(fs_info->fs_devices, 0); in test_punch_hole()
389 stripe->dev = btrfs_device_by_devid(fs_info->fs_devices, i); in test_punch_hole()
390 if (!stripe->dev) { in test_punch_hole()
521 io_stripe.dev = btrfs_device_by_devid(fs_info->fs_devices, 0); in test_front_delete_prev_item()
529 stripe->dev = btrfs_device_by_devid(fs_info->fs_devices, i); in test_front_delete_prev_item()
530 if (!stripe->dev) { in test_front_delete_prev_item()
550 stripe->dev = btrfs_device_by_devid(fs_info->fs_devices, i); in test_front_delete_prev_item()
551 if (!stripe->dev) { in test_front_delete_prev_item()
662 io_stripe.dev = btrfs_device_by_devid(fs_info->fs_devices, 0); in test_front_delete()
669 stripe->dev = btrfs_device_by_devid(fs_info->fs_devices, i); in test_front_delete()
670 if (!stripe->dev) { in test_front_delete()
771 io_stripe.dev = btrfs_device_by_devid(fs_info->fs_devices, 0); in test_tail_delete()
778 stripe->dev = btrfs_device_by_devid(fs_info->fs_devices, i); in test_tail_delete()
779 if (!stripe->dev) { in test_tail_delete()
794 io_stripe.dev = btrfs_device_by_devid(fs_info->fs_devices, 0); in test_tail_delete()
795 if (!io_stripe.dev) { in test_tail_delete()
893 io_stripe.dev = btrfs_device_by_devid(fs_info->fs_devices, 0); in test_create_update_delete()
900 stripe->dev = btrfs_device_by_devid(fs_info->fs_devices, i); in test_create_update_delete()
901 if (!stripe->dev) { in test_create_update_delete()
916 io_stripe.dev = btrfs_device_by_devid(fs_info->fs_devices, 0); in test_create_update_delete()
917 if (!io_stripe.dev) { in test_create_update_delete()
946 stripe->dev = btrfs_device_by_devid(fs_info->fs_devices, i); in test_create_update_delete()
947 if (!stripe->dev) { in test_create_update_delete()
1020 stripe->dev = btrfs_device_by_devid(fs_info->fs_devices, i); in test_simple_create_delete()
1021 if (!stripe->dev) { in test_simple_create_delete()
1036 io_stripe.dev = btrfs_device_by_devid(fs_info->fs_devices, 0); in test_simple_create_delete()
1037 if (!io_stripe.dev) { in test_simple_create_delete()
1123 struct btrfs_device *dev; in run_test() local
1125 dev = btrfs_alloc_dummy_device(fs_info); in run_test()
1126 if (IS_ERR(dev)) { in run_test()
1128 ret = PTR_ERR(dev); in run_test()
1131 dev->devid = i; in run_test()