Lines Matching full:start

31 "em leak: em (start %llu len %llu disk_bytenr %llu disk_num_bytes %llu offset %llu) refs %d",  in free_extent_map_tree()
32 em->start, em->len, em->disk_bytenr, in free_extent_map_tree()
66 u64 start = 0; in test_case_1() local
78 em->start = 0; in test_case_1()
84 ret = btrfs_add_extent_mapping(inode, &em, em->start, em->len); in test_case_1()
100 em->start = SZ_16K; in test_case_1()
106 ret = btrfs_add_extent_mapping(inode, &em, em->start, em->len); in test_case_1()
122 em->start = start; in test_case_1()
124 em->disk_bytenr = start; in test_case_1()
128 ret = btrfs_add_extent_mapping(inode, &em, em->start, em->len); in test_case_1()
131 test_err("case1 [%llu %llu]: ret %d", start, start + len, ret); in test_case_1()
136 start, start + len); in test_case_1()
140 if (em->start != 0 || extent_map_end(em) != SZ_16K || in test_case_1()
143 "case1 [%llu %llu]: ret %d return a wrong em (start %llu len %llu disk_bytenr %llu disk_num_bytes %… in test_case_1()
144 start, start + len, ret, em->start, em->len, in test_case_1()
177 em->start = 0; in test_case_2()
183 ret = btrfs_add_extent_mapping(inode, &em, em->start, em->len); in test_case_2()
199 em->start = SZ_4K; in test_case_2()
205 ret = btrfs_add_extent_mapping(inode, &em, em->start, em->len); in test_case_2()
221 em->start = 0; in test_case_2()
227 ret = btrfs_add_extent_mapping(inode, &em, em->start, em->len); in test_case_2()
238 if (em->start != 0 || extent_map_end(em) != SZ_1K || in test_case_2()
241 "case2 [0 1K]: ret %d return a wrong em (start %llu len %llu disk_bytenr %llu", in test_case_2()
242 ret, em->start, em->len, em->disk_bytenr); in test_case_2()
255 struct btrfs_inode *inode, u64 start) in __test_case_3() argument
270 em->start = SZ_4K; in __test_case_3()
276 ret = btrfs_add_extent_mapping(inode, &em, em->start, em->len); in __test_case_3()
292 em->start = 0; in __test_case_3()
298 ret = btrfs_add_extent_mapping(inode, &em, start, len); in __test_case_3()
302 start, start + len, ret); in __test_case_3()
307 start, start + len); in __test_case_3()
313 * em->start. in __test_case_3()
315 if (start < em->start || start + len > extent_map_end(em) || in __test_case_3()
316 em->start != extent_map_block_start(em)) { in __test_case_3()
318 "case3 [%llu %llu): ret %d em (start %llu len %llu disk_bytenr %llu block_len %llu)", in __test_case_3()
319 start, start + len, ret, em->start, em->len, in __test_case_3()
364 struct btrfs_inode *inode, u64 start) in __test_case_4() argument
379 em->start = 0; in __test_case_4()
385 ret = btrfs_add_extent_mapping(inode, &em, em->start, em->len); in __test_case_4()
401 em->start = SZ_8K; in __test_case_4()
407 ret = btrfs_add_extent_mapping(inode, &em, em->start, em->len); in __test_case_4()
422 em->start = 0; in __test_case_4()
428 ret = btrfs_add_extent_mapping(inode, &em, start, len); in __test_case_4()
432 start, start + len, ret); in __test_case_4()
437 start, start + len); in __test_case_4()
441 if (start < em->start || start + len > extent_map_end(em)) { in __test_case_4()
443 "case4 [%llu %llu): ret %d, added wrong em (start %llu len %llu disk_bytenr %llu disk_num_bytes %ll… in __test_case_4()
444 start, start + len, ret, em->start, em->len, in __test_case_4()
495 u64 start, u64 len, u64 block_start) in add_compressed_extent() argument
507 em->start = start; in add_compressed_extent()
514 ret = btrfs_add_extent_mapping(inode, &em, em->start, em->len); in add_compressed_extent()
518 test_err("cannot add extent map [%llu, %llu)", start, start + len); in add_compressed_extent()
526 u64 start; member
533 { .start = 0, .len = SZ_8K }, /* [0, 8K) */
534 { .start = SZ_4K * 3, .len = SZ_4K * 3}, /* [12k, 24k) */
535 { .start = SZ_4K * 6, .len = SZ_4K * 3}, /* [24k, 36k) */
536 { .start = SZ_32K + SZ_4K, .len = SZ_4K}, /* [36k, 40k) */
537 { .start = SZ_4K * 10, .len = SZ_4K * 6}, /* [40k, 64k) */
540 { .start = 0, .len = SZ_8K }, /* [0, 8K) */
541 { .start = SZ_4K * 5, .len = SZ_4K}, /* [20k, 24k) */
542 { .start = SZ_4K * 6, .len = SZ_4K * 3}, /* [24k, 36k) */
543 { .start = SZ_32K + SZ_4K, .len = SZ_4K}, /* [36k, 40k) */
544 { .start = SZ_4K * 10, .len = SZ_4K * 6}, /* [40k, 64k) */
547 { .start = 0, .len = SZ_8K }, /* [0, 8K) */
548 { .start = SZ_4K * 5, .len = SZ_4K}, /* [20k, 24k) */
549 { .start = SZ_4K * 6, .len = SZ_4K}, /* [24k, 28k) */
550 { .start = SZ_32K, .len = SZ_4K}, /* [32k, 36k) */
551 { .start = SZ_32K + SZ_4K, .len = SZ_4K}, /* [36k, 40k) */
552 { .start = SZ_4K * 10, .len = SZ_4K * 6}, /* [40k, 64k) */
555 { .start = 0, .len = SZ_8K}, /* [0, 8K) */
556 { .start = SZ_4K * 5, .len = SZ_4K}, /* [20k, 24k) */
557 { .start = SZ_4K * 6, .len = SZ_4K}, /* [24k, 28k) */
571 if (entry->start != valid_ranges[index][i].start) { in validate_range()
572 test_err("mapping has start %llu expected %llu", in validate_range()
573 entry->start, valid_ranges[index][i].start); in validate_range()
622 u64 start, end; in test_case_5() local
664 start = SZ_8K; in test_case_5()
666 btrfs_drop_extent_map_range(inode, start, end, false); in test_case_5()
672 start = SZ_4K * 3; in test_case_5()
674 btrfs_drop_extent_map_range(inode, start, end, false); in test_case_5()
680 start = SZ_32K - SZ_4K; in test_case_5()
682 btrfs_drop_extent_map_range(inode, start, end, false); in test_case_5()
688 start = SZ_32K; in test_case_5()
690 btrfs_drop_extent_map_range(inode, start, end, false); in test_case_5()
729 em->start = SZ_4K; in test_case_6()
744 if (em->start != 0) { in test_case_6()
745 test_err("unexpected em->start at %llu, wanted 0", em->start); in test_case_6()
764 * true would mess up the start/end calculations and subsequent splits would be
783 em->start = 0; in test_case_7()
790 ret = btrfs_add_extent_mapping(inode, &em, em->start, em->len); in test_case_7()
806 em->start = SZ_32K; in test_case_7()
812 ret = btrfs_add_extent_mapping(inode, &em, em->start, em->len); in test_case_7()
835 if (em->start != 0) { in test_case_7()
836 test_err("em->start is %llu, expected 0", em->start); in test_case_7()
863 if (em->start != (36 * SZ_1K)) { in test_case_7()
864 test_err("em->start is %llu, expected 36K", em->start); in test_case_7()
907 * incremented its start offset.
923 em->start = SZ_1K * 120; in test_case_8()
929 ret = btrfs_add_extent_mapping(inode, &em, em->start, em->len); in test_case_8()
948 em->start = SZ_1K * 108; in test_case_8()
976 if (em->start != SZ_128K) { in test_case_8()
977 test_err("unexpected extent map start %llu (should be 128K)", em->start); in test_case_8()
1026 /* Start at 4GiB logical address */ in test_rmap_block()
1027 map->start = SZ_4G; in test_rmap_block()
1051 ret = btrfs_rmap_block(fs_info, map->start, btrfs_sb_offset(1), in test_rmap_block()