Lines Matching refs:start

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()
92 em->start = SZ_16K; 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()
125 (em->start != 0 || extent_map_end(em) != SZ_16K || in test_case_1()
129 start, start + len, ret, em->start, em->len, in test_case_1()
159 em->start = 0; in test_case_2()
180 em->start = SZ_4K; in test_case_2()
201 em->start = 0; in test_case_2()
206 ret = btrfs_add_extent_mapping(fs_info, em_tree, &em, em->start, em->len); in test_case_2()
213 (em->start != 0 || extent_map_end(em) != SZ_1K || in test_case_2()
217 ret, em->start, em->len, em->block_start, in test_case_2()
229 struct extent_map_tree *em_tree, u64 start) in __test_case_3() argument
242 em->start = SZ_4K; in __test_case_3()
263 em->start = 0; in __test_case_3()
268 ret = btrfs_add_extent_mapping(fs_info, em_tree, &em, start, len); in __test_case_3()
272 start, start + len, ret); in __test_case_3()
280 (start < em->start || start + len > extent_map_end(em) || in __test_case_3()
281 em->start != em->block_start || em->len != em->block_len)) { in __test_case_3()
284 start, start + len, ret, em->start, em->len, in __test_case_3()
328 struct extent_map_tree *em_tree, u64 start) in __test_case_4() argument
341 em->start = 0; in __test_case_4()
362 em->start = SZ_8K; in __test_case_4()
382 em->start = 0; in __test_case_4()
387 ret = btrfs_add_extent_mapping(fs_info, em_tree, &em, start, len); in __test_case_4()
391 start, len, ret); in __test_case_4()
394 if (em && (start < em->start || start + len > extent_map_end(em))) { in __test_case_4()
397 start, len, ret, em->start, em->len, em->block_start, in __test_case_4()
447 u64 start, u64 len, u64 block_start) in add_compressed_extent() argument
458 em->start = start; in add_compressed_extent()
468 test_err("cannot add extent map [%llu, %llu)", start, start + len); in add_compressed_extent()
476 u64 start; member
483 { .start = 0, .len = SZ_8K }, /* [0, 8K) */
484 { .start = SZ_4K * 3, .len = SZ_4K * 3}, /* [12k, 24k) */
485 { .start = SZ_4K * 6, .len = SZ_4K * 3}, /* [24k, 36k) */
486 { .start = SZ_32K + SZ_4K, .len = SZ_4K}, /* [36k, 40k) */
487 { .start = SZ_4K * 10, .len = SZ_4K * 6}, /* [40k, 64k) */
490 { .start = 0, .len = SZ_8K }, /* [0, 8K) */
491 { .start = SZ_4K * 5, .len = SZ_4K}, /* [20k, 24k) */
492 { .start = SZ_4K * 6, .len = SZ_4K * 3}, /* [24k, 36k) */
493 { .start = SZ_32K + SZ_4K, .len = SZ_4K}, /* [36k, 40k) */
494 { .start = SZ_4K * 10, .len = SZ_4K * 6}, /* [40k, 64k) */
497 { .start = 0, .len = SZ_8K }, /* [0, 8K) */
498 { .start = SZ_4K * 5, .len = SZ_4K}, /* [20k, 24k) */
499 { .start = SZ_4K * 6, .len = SZ_4K}, /* [24k, 28k) */
500 { .start = SZ_32K, .len = SZ_4K}, /* [32k, 36k) */
501 { .start = SZ_32K + SZ_4K, .len = SZ_4K}, /* [36k, 40k) */
502 { .start = SZ_4K * 10, .len = SZ_4K * 6}, /* [40k, 64k) */
505 { .start = 0, .len = SZ_8K}, /* [0, 8K) */
506 { .start = SZ_4K * 5, .len = SZ_4K}, /* [20k, 24k) */
507 { .start = SZ_4K * 6, .len = SZ_4K}, /* [24k, 28k) */
521 if (entry->start != valid_ranges[index][i].start) { in validate_range()
523 entry->start, valid_ranges[index][i].start); in validate_range()
574 u64 start, end; in test_case_5() local
623 start = SZ_8K; in test_case_5()
625 btrfs_drop_extent_map_range(BTRFS_I(inode), start, end, false); in test_case_5()
631 start = SZ_4K * 3; in test_case_5()
633 btrfs_drop_extent_map_range(BTRFS_I(inode), start, end, false); in test_case_5()
639 start = SZ_32K - SZ_4K; in test_case_5()
641 btrfs_drop_extent_map_range(BTRFS_I(inode), start, end, false); in test_case_5()
647 start = SZ_32K; in test_case_5()
649 btrfs_drop_extent_map_range(BTRFS_I(inode), start, end, false); in test_case_5()
682 em->start = SZ_4K; in test_case_6()
696 if (em->start != 0) { in test_case_6()
697 test_err("unexpected em->start at %llu, wanted 0", em->start); in test_case_6()
741 em->start = 0; in test_case_7()
763 em->start = SZ_32K; in test_case_7()
791 if (em->start != 0) { in test_case_7()
792 test_err("em->start is %llu, expected 0", em->start); in test_case_7()
819 if (em->start != (36 * SZ_1K)) { in test_case_7()
820 test_err("em->start is %llu, expected 36K", em->start); in test_case_7()
883 em->start = SZ_4G; in test_rmap_block()
912 ret = btrfs_rmap_block(fs_info, em->start, btrfs_sb_offset(1), in test_rmap_block()