Lines Matching full:start

15 static void insert_extent(struct btrfs_root *root, u64 start, u64 len,  in insert_extent()  argument
34 key.offset = start; in insert_extent()
288 if (em->start != 0 || em->len != 5) { in test_btrfs_get_extent()
290 "unexpected extent wanted start 0 len 5, got start %llu len %llu", in test_btrfs_get_extent()
291 em->start, em->len); in test_btrfs_get_extent()
298 offset = em->start + em->len; in test_btrfs_get_extent()
311 if (em->start != offset || em->len != (sectorsize - 5)) { in test_btrfs_get_extent()
313 "unexpected extent wanted start %llu len 1, got start %llu len %llu", in test_btrfs_get_extent()
314 offset, em->start, em->len); in test_btrfs_get_extent()
326 offset = em->start + em->len; in test_btrfs_get_extent()
338 if (em->start != offset || em->len != 4) { in test_btrfs_get_extent()
340 "unexpected extent wanted start %llu len 4, got start %llu len %llu", in test_btrfs_get_extent()
341 offset, em->start, em->len); in test_btrfs_get_extent()
348 offset = em->start + em->len; in test_btrfs_get_extent()
361 if (em->start != offset || em->len != sectorsize - 1) { in test_btrfs_get_extent()
363 "unexpected extent wanted start %llu len 4095, got start %llu len %llu", in test_btrfs_get_extent()
364 offset, em->start, em->len); in test_btrfs_get_extent()
371 if (em->orig_start != em->start) { in test_btrfs_get_extent()
372 test_err("wrong orig offset, want %llu, have %llu", em->start, in test_btrfs_get_extent()
376 offset = em->start + em->len; in test_btrfs_get_extent()
389 if (em->start != offset || em->len != sectorsize) { in test_btrfs_get_extent()
391 "unexpected extent start %llu len %u, got start %llu len %llu", in test_btrfs_get_extent()
392 offset, sectorsize, em->start, em->len); in test_btrfs_get_extent()
399 if (em->orig_start != em->start) { in test_btrfs_get_extent()
400 test_err("wrong orig offset, want %llu, have %llu", em->start, in test_btrfs_get_extent()
405 orig_start = em->start; in test_btrfs_get_extent()
406 offset = em->start + em->len; in test_btrfs_get_extent()
418 if (em->start != offset || em->len != sectorsize) { in test_btrfs_get_extent()
420 "unexpected extent wanted start %llu len %u, got start %llu len %llu", in test_btrfs_get_extent()
421 offset, sectorsize, em->start, em->len); in test_btrfs_get_extent()
428 offset = em->start + em->len; in test_btrfs_get_extent()
440 if (em->start != offset || em->len != 2 * sectorsize) { in test_btrfs_get_extent()
442 "unexpected extent wanted start %llu len %u, got start %llu len %llu", in test_btrfs_get_extent()
443 offset, 2 * sectorsize, em->start, em->len); in test_btrfs_get_extent()
455 disk_bytenr += (em->start - orig_start); in test_btrfs_get_extent()
457 test_err("wrong block start, want %llu, have %llu", in test_btrfs_get_extent()
461 offset = em->start + em->len; in test_btrfs_get_extent()
474 if (em->start != offset || em->len != sectorsize) { in test_btrfs_get_extent()
476 "unexpected extent wanted start %llu len %u, got start %llu len %llu", in test_btrfs_get_extent()
477 offset, sectorsize, em->start, em->len); in test_btrfs_get_extent()
485 if (em->orig_start != em->start) { in test_btrfs_get_extent()
486 test_err("wrong orig offset, want %llu, have %llu", em->start, in test_btrfs_get_extent()
490 offset = em->start + em->len; in test_btrfs_get_extent()
503 if (em->start != offset || em->len != sectorsize) { in test_btrfs_get_extent()
505 "unexpected extent wanted start %llu len %u, got start %llu len %llu", in test_btrfs_get_extent()
506 offset, sectorsize, em->start, em->len); in test_btrfs_get_extent()
514 if (em->orig_start != em->start) { in test_btrfs_get_extent()
515 test_err("wrong orig offset, want %llu, have %llu", em->start, in test_btrfs_get_extent()
520 orig_start = em->start; in test_btrfs_get_extent()
521 offset = em->start + em->len; in test_btrfs_get_extent()
533 if (em->start != offset || em->len != sectorsize) { in test_btrfs_get_extent()
535 "unexpected extent wanted start %llu len %u, got start %llu len %llu", in test_btrfs_get_extent()
536 offset, sectorsize, em->start, em->len); in test_btrfs_get_extent()
548 if (em->block_start != (disk_bytenr + (em->start - em->orig_start))) { in test_btrfs_get_extent()
549 test_err("unexpected block start, wanted %llu, have %llu", in test_btrfs_get_extent()
550 disk_bytenr + (em->start - em->orig_start), in test_btrfs_get_extent()
554 offset = em->start + em->len; in test_btrfs_get_extent()
566 if (em->start != offset || em->len != 2 * sectorsize) { in test_btrfs_get_extent()
568 "unexpected extent wanted start %llu len %u, got start %llu len %llu", in test_btrfs_get_extent()
569 offset, 2 * sectorsize, em->start, em->len); in test_btrfs_get_extent()
582 if (em->block_start != (disk_bytenr + (em->start - em->orig_start))) { in test_btrfs_get_extent()
583 test_err("unexpected block start, wanted %llu, have %llu", in test_btrfs_get_extent()
584 disk_bytenr + (em->start - em->orig_start), in test_btrfs_get_extent()
588 offset = em->start + em->len; in test_btrfs_get_extent()
601 if (em->start != offset || em->len != 2 * sectorsize) { in test_btrfs_get_extent()
603 "unexpected extent wanted start %llu len %u, got start %llu len %llu", in test_btrfs_get_extent()
604 offset, 2 * sectorsize, em->start, em->len); in test_btrfs_get_extent()
612 if (em->orig_start != em->start) { in test_btrfs_get_extent()
614 em->start, em->orig_start); in test_btrfs_get_extent()
622 offset = em->start + em->len; in test_btrfs_get_extent()
635 if (em->start != offset || em->len != sectorsize) { in test_btrfs_get_extent()
637 "unexpected extent wanted start %llu len %u, got start %llu len %llu", in test_btrfs_get_extent()
638 offset, sectorsize, em->start, em->len); in test_btrfs_get_extent()
646 if (em->orig_start != em->start) { in test_btrfs_get_extent()
648 em->start, em->orig_start); in test_btrfs_get_extent()
657 orig_start = em->start; in test_btrfs_get_extent()
658 offset = em->start + em->len; in test_btrfs_get_extent()
670 if (em->start != offset || em->len != sectorsize) { in test_btrfs_get_extent()
672 "unexpected extent wanted start %llu len %u, got start %llu len %llu", in test_btrfs_get_extent()
673 offset, sectorsize, em->start, em->len); in test_btrfs_get_extent()
680 if (em->orig_start != em->start) { in test_btrfs_get_extent()
681 test_err("wrong orig offset, want %llu, have %llu", em->start, in test_btrfs_get_extent()
685 offset = em->start + em->len; in test_btrfs_get_extent()
694 test_err("block start does not match, want %llu got %llu", in test_btrfs_get_extent()
698 if (em->start != offset || em->len != 2 * sectorsize) { in test_btrfs_get_extent()
700 "unexpected extent wanted start %llu len %u, got start %llu len %llu", in test_btrfs_get_extent()
701 offset, 2 * sectorsize, em->start, em->len); in test_btrfs_get_extent()
711 em->start, orig_start); in test_btrfs_get_extent()
719 offset = em->start + em->len; in test_btrfs_get_extent()
732 if (em->start != offset || em->len != sectorsize) { in test_btrfs_get_extent()
734 "unexpected extent wanted start %llu len %u, got start %llu len %llu", in test_btrfs_get_extent()
735 offset, sectorsize, em->start, em->len); in test_btrfs_get_extent()
742 if (em->orig_start != em->start) { in test_btrfs_get_extent()
743 test_err("wrong orig offset, want %llu, have %llu", em->start, in test_btrfs_get_extent()
747 offset = em->start + em->len; in test_btrfs_get_extent()
764 if (em->start != offset || em->len != 3 * sectorsize) { in test_btrfs_get_extent()
766 "unexpected extent wanted start %llu len %u, got start %llu len %llu", in test_btrfs_get_extent()
767 offset, 3 * sectorsize, em->start, em->len); in test_btrfs_get_extent()
775 if (em->orig_start != em->start) { in test_btrfs_get_extent()
776 test_err("wrong orig offset, want %llu, have %llu", em->start, in test_btrfs_get_extent()
780 offset = em->start + em->len; in test_btrfs_get_extent()
792 if (em->start != offset || em->len != sectorsize) { in test_btrfs_get_extent()
794 "unexpected extent wanted start %llu len %u, got start %llu len %llu", in test_btrfs_get_extent()
795 offset, sectorsize, em->start, em->len); in test_btrfs_get_extent()
802 if (em->orig_start != em->start) { in test_btrfs_get_extent()
803 test_err("wrong orig offset, want %llu, have %llu", em->start, in test_btrfs_get_extent()
872 if (em->start != 0 || em->len != sectorsize) { in test_hole_first()
874 "unexpected extent wanted start 0 len %u, got start %llu len %llu", in test_hole_first()
875 sectorsize, em->start, em->len); in test_hole_first()
894 if (em->start != sectorsize || em->len != sectorsize) { in test_hole_first()
896 "unexpected extent wanted start %u len %u, got start %llu len %llu", in test_hole_first()
897 sectorsize, sectorsize, em->start, em->len); in test_hole_first()