Lines Matching full:start

28 "em leak: em (start %llu len %llu block_start %llu block_len %llu) refs %d",  in free_extent_map_tree()
29 em->start, em->len, em->block_start, in free_extent_map_tree()
60 u64 start = 0; in test_case_1() local
71 em->start = 0; in test_case_1()
76 ret = btrfs_add_extent_mapping(fs_info, em_tree, &em, em->start, em->len); in test_case_1()
92 em->start = SZ_16K; in test_case_1()
97 ret = btrfs_add_extent_mapping(fs_info, em_tree, &em, em->start, em->len); in test_case_1()
113 em->start = start; in test_case_1()
115 em->block_start = start; in test_case_1()
118 ret = btrfs_add_extent_mapping(fs_info, em_tree, &em, em->start, em->len); in test_case_1()
121 test_err("case1 [%llu %llu]: ret %d", start, start + len, ret); in test_case_1()
126 start, start + len); in test_case_1()
130 if (em->start != 0 || extent_map_end(em) != SZ_16K || in test_case_1()
133 "case1 [%llu %llu]: ret %d return a wrong em (start %llu len %llu block_start %llu block_len %llu", in test_case_1()
134 start, start + len, ret, em->start, em->len, in test_case_1()
164 em->start = 0; in test_case_2()
169 ret = btrfs_add_extent_mapping(fs_info, em_tree, &em, em->start, em->len); in test_case_2()
185 em->start = SZ_4K; in test_case_2()
190 ret = btrfs_add_extent_mapping(fs_info, em_tree, &em, em->start, em->len); in test_case_2()
206 em->start = 0; in test_case_2()
211 ret = btrfs_add_extent_mapping(fs_info, em_tree, &em, em->start, em->len); in test_case_2()
222 if (em->start != 0 || extent_map_end(em) != SZ_1K || in test_case_2()
225 "case2 [0 1K]: ret %d return a wrong em (start %llu len %llu block_start %llu block_len %llu", in test_case_2()
226 ret, em->start, em->len, em->block_start, in test_case_2()
238 struct extent_map_tree *em_tree, u64 start) in __test_case_3() argument
251 em->start = SZ_4K; in __test_case_3()
256 ret = btrfs_add_extent_mapping(fs_info, em_tree, &em, em->start, em->len); in __test_case_3()
272 em->start = 0; in __test_case_3()
277 ret = btrfs_add_extent_mapping(fs_info, em_tree, &em, start, len); in __test_case_3()
281 start, start + len, ret); in __test_case_3()
286 start, start + len); in __test_case_3()
292 * em->start. in __test_case_3()
294 if (start < em->start || start + len > extent_map_end(em) || in __test_case_3()
295 em->start != em->block_start || em->len != em->block_len) { in __test_case_3()
297 "case3 [%llu %llu): ret %d em (start %llu len %llu block_start %llu block_len %llu)", in __test_case_3()
298 start, start + len, ret, em->start, em->len, in __test_case_3()
342 struct extent_map_tree *em_tree, u64 start) in __test_case_4() argument
355 em->start = 0; in __test_case_4()
360 ret = btrfs_add_extent_mapping(fs_info, em_tree, &em, em->start, em->len); in __test_case_4()
376 em->start = SZ_8K; in __test_case_4()
381 ret = btrfs_add_extent_mapping(fs_info, em_tree, &em, em->start, em->len); in __test_case_4()
396 em->start = 0; in __test_case_4()
401 ret = btrfs_add_extent_mapping(fs_info, em_tree, &em, start, len); in __test_case_4()
405 start, start + len, ret); in __test_case_4()
410 start, start + len); in __test_case_4()
414 if (start < em->start || start + len > extent_map_end(em)) { in __test_case_4()
416 "case4 [%llu %llu): ret %d, added wrong em (start %llu len %llu block_start %llu block_len %llu)", in __test_case_4()
417 start, start + len, ret, em->start, em->len, em->block_start, in __test_case_4()
468 u64 start, u64 len, u64 block_start) in add_compressed_extent() argument
479 em->start = start; in add_compressed_extent()
485 ret = btrfs_add_extent_mapping(fs_info, em_tree, &em, em->start, em->len); in add_compressed_extent()
489 test_err("cannot add extent map [%llu, %llu)", start, start + len); in add_compressed_extent()
497 u64 start; member
504 { .start = 0, .len = SZ_8K }, /* [0, 8K) */
505 { .start = SZ_4K * 3, .len = SZ_4K * 3}, /* [12k, 24k) */
506 { .start = SZ_4K * 6, .len = SZ_4K * 3}, /* [24k, 36k) */
507 { .start = SZ_32K + SZ_4K, .len = SZ_4K}, /* [36k, 40k) */
508 { .start = SZ_4K * 10, .len = SZ_4K * 6}, /* [40k, 64k) */
511 { .start = 0, .len = SZ_8K }, /* [0, 8K) */
512 { .start = SZ_4K * 5, .len = SZ_4K}, /* [20k, 24k) */
513 { .start = SZ_4K * 6, .len = SZ_4K * 3}, /* [24k, 36k) */
514 { .start = SZ_32K + SZ_4K, .len = SZ_4K}, /* [36k, 40k) */
515 { .start = SZ_4K * 10, .len = SZ_4K * 6}, /* [40k, 64k) */
518 { .start = 0, .len = SZ_8K }, /* [0, 8K) */
519 { .start = SZ_4K * 5, .len = SZ_4K}, /* [20k, 24k) */
520 { .start = SZ_4K * 6, .len = SZ_4K}, /* [24k, 28k) */
521 { .start = SZ_32K, .len = SZ_4K}, /* [32k, 36k) */
522 { .start = SZ_32K + SZ_4K, .len = SZ_4K}, /* [36k, 40k) */
523 { .start = SZ_4K * 10, .len = SZ_4K * 6}, /* [40k, 64k) */
526 { .start = 0, .len = SZ_8K}, /* [0, 8K) */
527 { .start = SZ_4K * 5, .len = SZ_4K}, /* [20k, 24k) */
528 { .start = SZ_4K * 6, .len = SZ_4K}, /* [24k, 28k) */
542 if (entry->start != valid_ranges[index][i].start) { in validate_range()
543 test_err("mapping has start %llu expected %llu", in validate_range()
544 entry->start, valid_ranges[index][i].start); in validate_range()
595 u64 start, end; in test_case_5() local
644 start = SZ_8K; in test_case_5()
646 btrfs_drop_extent_map_range(BTRFS_I(inode), start, end, false); in test_case_5()
652 start = SZ_4K * 3; in test_case_5()
654 btrfs_drop_extent_map_range(BTRFS_I(inode), start, end, false); in test_case_5()
660 start = SZ_32K - SZ_4K; in test_case_5()
662 btrfs_drop_extent_map_range(BTRFS_I(inode), start, end, false); in test_case_5()
668 start = SZ_32K; in test_case_5()
670 btrfs_drop_extent_map_range(BTRFS_I(inode), start, end, false); in test_case_5()
703 em->start = SZ_4K; in test_case_6()
717 if (em->start != 0) { in test_case_6()
718 test_err("unexpected em->start at %llu, wanted 0", em->start); in test_case_6()
734 * true would mess up the start/end calculations and subsequent splits would be
762 em->start = 0; in test_case_7()
768 ret = btrfs_add_extent_mapping(fs_info, em_tree, &em, em->start, em->len); in test_case_7()
784 em->start = SZ_32K; in test_case_7()
789 ret = btrfs_add_extent_mapping(fs_info, em_tree, &em, em->start, em->len); in test_case_7()
812 if (em->start != 0) { in test_case_7()
813 test_err("em->start is %llu, expected 0", em->start); in test_case_7()
840 if (em->start != (36 * SZ_1K)) { in test_case_7()
841 test_err("em->start is %llu, expected 36K", em->start); in test_case_7()
894 /* Start at 4GiB logical address */ in test_rmap_block()
895 map->start = SZ_4G; in test_rmap_block()
919 ret = btrfs_rmap_block(fs_info, map->start, btrfs_sb_offset(1), in test_rmap_block()