Lines Matching refs:bioc
41 struct btrfs_io_context *bioc; in test_punch_hole_3extents() local
54 bioc = alloc_btrfs_io_context(fs_info, logical1, RST_TEST_NUM_DEVICES); in test_punch_hole_3extents()
55 if (!bioc) { in test_punch_hole_3extents()
64 bioc->map_type = map_type; in test_punch_hole_3extents()
65 bioc->size = len1; in test_punch_hole_3extents()
68 struct btrfs_io_stripe *stripe = &bioc->stripes[i]; in test_punch_hole_3extents()
80 ret = btrfs_insert_one_raid_extent(trans, bioc); in test_punch_hole_3extents()
86 bioc->logical = logical2; in test_punch_hole_3extents()
87 bioc->size = len2; in test_punch_hole_3extents()
89 struct btrfs_io_stripe *stripe = &bioc->stripes[i]; in test_punch_hole_3extents()
101 ret = btrfs_insert_one_raid_extent(trans, bioc); in test_punch_hole_3extents()
107 bioc->logical = logical3; in test_punch_hole_3extents()
108 bioc->size = len3; in test_punch_hole_3extents()
110 struct btrfs_io_stripe *stripe = &bioc->stripes[i]; in test_punch_hole_3extents()
122 ret = btrfs_insert_one_raid_extent(trans, bioc); in test_punch_hole_3extents()
212 btrfs_put_bioc(bioc); in test_punch_hole_3extents()
219 struct btrfs_io_context *bioc; in test_delete_two_extents() local
230 bioc = alloc_btrfs_io_context(fs_info, logical1, RST_TEST_NUM_DEVICES); in test_delete_two_extents()
231 if (!bioc) { in test_delete_two_extents()
240 bioc->map_type = map_type; in test_delete_two_extents()
241 bioc->size = len1; in test_delete_two_extents()
244 struct btrfs_io_stripe *stripe = &bioc->stripes[i]; in test_delete_two_extents()
256 ret = btrfs_insert_one_raid_extent(trans, bioc); in test_delete_two_extents()
262 bioc->logical = logical2; in test_delete_two_extents()
263 bioc->size = len2; in test_delete_two_extents()
265 struct btrfs_io_stripe *stripe = &bioc->stripes[i]; in test_delete_two_extents()
277 ret = btrfs_insert_one_raid_extent(trans, bioc); in test_delete_two_extents()
283 bioc->logical = logical3; in test_delete_two_extents()
284 bioc->size = len3; in test_delete_two_extents()
286 struct btrfs_io_stripe *stripe = &bioc->stripes[i]; in test_delete_two_extents()
298 ret = btrfs_insert_one_raid_extent(trans, bioc); in test_delete_two_extents()
355 btrfs_put_bioc(bioc); in test_delete_two_extents()
363 struct btrfs_io_context *bioc; in test_punch_hole() local
375 bioc = alloc_btrfs_io_context(fs_info, logical1, RST_TEST_NUM_DEVICES); in test_punch_hole()
376 if (!bioc) { in test_punch_hole()
383 bioc->map_type = map_type; in test_punch_hole()
384 bioc->size = len; in test_punch_hole()
387 struct btrfs_io_stripe *stripe = &bioc->stripes[i]; in test_punch_hole()
399 ret = btrfs_insert_one_raid_extent(trans, bioc); in test_punch_hole()
494 btrfs_put_bioc(bioc); in test_punch_hole()
506 struct btrfs_io_context *bioc; in test_front_delete_prev_item() local
514 bioc = alloc_btrfs_io_context(fs_info, logical1, RST_TEST_NUM_DEVICES); in test_front_delete_prev_item()
515 if (!bioc) { in test_front_delete_prev_item()
522 bioc->map_type = map_type; in test_front_delete_prev_item()
523 bioc->size = len; in test_front_delete_prev_item()
527 struct btrfs_io_stripe *stripe = &bioc->stripes[i]; in test_front_delete_prev_item()
539 ret = btrfs_insert_one_raid_extent(trans, bioc); in test_front_delete_prev_item()
545 bioc->logical = logical2; in test_front_delete_prev_item()
548 struct btrfs_io_stripe *stripe = &bioc->stripes[i]; in test_front_delete_prev_item()
560 ret = btrfs_insert_one_raid_extent(trans, bioc); in test_front_delete_prev_item()
637 btrfs_put_bioc(bioc); in test_front_delete_prev_item()
648 struct btrfs_io_context *bioc; in test_front_delete() local
655 bioc = alloc_btrfs_io_context(fs_info, logical, RST_TEST_NUM_DEVICES); in test_front_delete()
656 if (!bioc) { in test_front_delete()
663 bioc->map_type = map_type; in test_front_delete()
664 bioc->size = len; in test_front_delete()
667 struct btrfs_io_stripe *stripe = &bioc->stripes[i]; in test_front_delete()
679 ret = btrfs_insert_one_raid_extent(trans, bioc); in test_front_delete()
746 btrfs_put_bioc(bioc); in test_front_delete()
757 struct btrfs_io_context *bioc; in test_tail_delete() local
764 bioc = alloc_btrfs_io_context(fs_info, logical, RST_TEST_NUM_DEVICES); in test_tail_delete()
765 if (!bioc) { in test_tail_delete()
772 bioc->map_type = map_type; in test_tail_delete()
773 bioc->size = len; in test_tail_delete()
776 struct btrfs_io_stripe *stripe = &bioc->stripes[i]; in test_tail_delete()
788 ret = btrfs_insert_one_raid_extent(trans, bioc); in test_tail_delete()
866 btrfs_put_bioc(bioc); in test_tail_delete()
879 struct btrfs_io_context *bioc; in test_create_update_delete() local
886 bioc = alloc_btrfs_io_context(fs_info, logical, RST_TEST_NUM_DEVICES); in test_create_update_delete()
887 if (!bioc) { in test_create_update_delete()
894 bioc->map_type = map_type; in test_create_update_delete()
895 bioc->size = len; in test_create_update_delete()
898 struct btrfs_io_stripe *stripe = &bioc->stripes[i]; in test_create_update_delete()
910 ret = btrfs_insert_one_raid_extent(trans, bioc); in test_create_update_delete()
944 struct btrfs_io_stripe *stripe = &bioc->stripes[i]; in test_create_update_delete()
956 ret = btrfs_insert_one_raid_extent(trans, bioc); in test_create_update_delete()
989 btrfs_put_bioc(bioc); in test_create_update_delete()
1000 struct btrfs_io_context *bioc; in test_simple_create_delete() local
1007 bioc = alloc_btrfs_io_context(fs_info, logical, RST_TEST_NUM_DEVICES); in test_simple_create_delete()
1008 if (!bioc) { in test_simple_create_delete()
1014 bioc->map_type = map_type; in test_simple_create_delete()
1015 bioc->size = SZ_64K; in test_simple_create_delete()
1018 struct btrfs_io_stripe *stripe = &bioc->stripes[i]; in test_simple_create_delete()
1030 ret = btrfs_insert_one_raid_extent(trans, bioc); in test_simple_create_delete()
1069 btrfs_put_bioc(bioc); in test_simple_create_delete()