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()
293 if (em->start != 0 || em->len != 5) { in test_btrfs_get_extent()
295 "unexpected extent wanted start 0 len 5, got start %llu len %llu", in test_btrfs_get_extent()
296 em->start, em->len); in test_btrfs_get_extent()
303 offset = em->start + em->len; in test_btrfs_get_extent()
316 if (em->start != offset || em->len != (sectorsize - 5)) { in test_btrfs_get_extent()
318 "unexpected extent wanted start %llu len 1, got start %llu len %llu", in test_btrfs_get_extent()
319 offset, em->start, em->len); in test_btrfs_get_extent()
331 offset = em->start + em->len; in test_btrfs_get_extent()
343 if (em->start != offset || em->len != 4) { in test_btrfs_get_extent()
345 "unexpected extent wanted start %llu len 4, got start %llu len %llu", in test_btrfs_get_extent()
346 offset, em->start, em->len); in test_btrfs_get_extent()
353 offset = em->start + em->len; in test_btrfs_get_extent()
366 if (em->start != offset || em->len != sectorsize - 1) { in test_btrfs_get_extent()
368 "unexpected extent wanted start %llu len 4095, got start %llu len %llu", in test_btrfs_get_extent()
369 offset, em->start, em->len); in test_btrfs_get_extent()
376 if (em->orig_start != em->start) { in test_btrfs_get_extent()
377 test_err("wrong orig offset, want %llu, have %llu", em->start, in test_btrfs_get_extent()
381 offset = em->start + em->len; in test_btrfs_get_extent()
394 if (em->start != offset || em->len != sectorsize) { in test_btrfs_get_extent()
396 "unexpected extent start %llu len %u, got start %llu len %llu", in test_btrfs_get_extent()
397 offset, sectorsize, em->start, em->len); in test_btrfs_get_extent()
404 if (em->orig_start != em->start) { in test_btrfs_get_extent()
405 test_err("wrong orig offset, want %llu, have %llu", em->start, in test_btrfs_get_extent()
410 orig_start = em->start; in test_btrfs_get_extent()
411 offset = em->start + em->len; in test_btrfs_get_extent()
423 if (em->start != offset || em->len != sectorsize) { in test_btrfs_get_extent()
425 "unexpected extent wanted start %llu len %u, got start %llu len %llu", in test_btrfs_get_extent()
426 offset, sectorsize, em->start, em->len); in test_btrfs_get_extent()
433 offset = em->start + em->len; in test_btrfs_get_extent()
445 if (em->start != offset || em->len != 2 * sectorsize) { in test_btrfs_get_extent()
447 "unexpected extent wanted start %llu len %u, got start %llu len %llu", in test_btrfs_get_extent()
448 offset, 2 * sectorsize, em->start, em->len); in test_btrfs_get_extent()
460 disk_bytenr += (em->start - orig_start); in test_btrfs_get_extent()
462 test_err("wrong block start, want %llu, have %llu", in test_btrfs_get_extent()
466 offset = em->start + em->len; in test_btrfs_get_extent()
479 if (em->start != offset || em->len != sectorsize) { in test_btrfs_get_extent()
481 "unexpected extent wanted start %llu len %u, got start %llu len %llu", in test_btrfs_get_extent()
482 offset, sectorsize, em->start, em->len); in test_btrfs_get_extent()
490 if (em->orig_start != em->start) { in test_btrfs_get_extent()
491 test_err("wrong orig offset, want %llu, have %llu", em->start, in test_btrfs_get_extent()
495 offset = em->start + em->len; in test_btrfs_get_extent()
508 if (em->start != offset || em->len != sectorsize) { in test_btrfs_get_extent()
510 "unexpected extent wanted start %llu len %u, got start %llu len %llu", in test_btrfs_get_extent()
511 offset, sectorsize, em->start, em->len); in test_btrfs_get_extent()
519 if (em->orig_start != em->start) { in test_btrfs_get_extent()
520 test_err("wrong orig offset, want %llu, have %llu", em->start, in test_btrfs_get_extent()
525 orig_start = em->start; in test_btrfs_get_extent()
526 offset = em->start + em->len; in test_btrfs_get_extent()
538 if (em->start != offset || em->len != sectorsize) { in test_btrfs_get_extent()
540 "unexpected extent wanted start %llu len %u, got start %llu len %llu", in test_btrfs_get_extent()
541 offset, sectorsize, em->start, em->len); in test_btrfs_get_extent()
553 if (em->block_start != (disk_bytenr + (em->start - em->orig_start))) { in test_btrfs_get_extent()
554 test_err("unexpected block start, wanted %llu, have %llu", in test_btrfs_get_extent()
555 disk_bytenr + (em->start - em->orig_start), in test_btrfs_get_extent()
559 offset = em->start + em->len; in test_btrfs_get_extent()
571 if (em->start != offset || em->len != 2 * sectorsize) { in test_btrfs_get_extent()
573 "unexpected extent wanted start %llu len %u, got start %llu len %llu", in test_btrfs_get_extent()
574 offset, 2 * sectorsize, em->start, em->len); in test_btrfs_get_extent()
587 if (em->block_start != (disk_bytenr + (em->start - em->orig_start))) { in test_btrfs_get_extent()
588 test_err("unexpected block start, wanted %llu, have %llu", in test_btrfs_get_extent()
589 disk_bytenr + (em->start - em->orig_start), in test_btrfs_get_extent()
593 offset = em->start + em->len; in test_btrfs_get_extent()
606 if (em->start != offset || em->len != 2 * sectorsize) { in test_btrfs_get_extent()
608 "unexpected extent wanted start %llu len %u, got start %llu len %llu", in test_btrfs_get_extent()
609 offset, 2 * sectorsize, em->start, em->len); in test_btrfs_get_extent()
617 if (em->orig_start != em->start) { in test_btrfs_get_extent()
619 em->start, em->orig_start); in test_btrfs_get_extent()
627 offset = em->start + em->len; in test_btrfs_get_extent()
640 if (em->start != offset || em->len != sectorsize) { in test_btrfs_get_extent()
642 "unexpected extent wanted start %llu len %u, got start %llu len %llu", in test_btrfs_get_extent()
643 offset, sectorsize, em->start, em->len); in test_btrfs_get_extent()
651 if (em->orig_start != em->start) { in test_btrfs_get_extent()
653 em->start, em->orig_start); in test_btrfs_get_extent()
662 orig_start = em->start; in test_btrfs_get_extent()
663 offset = em->start + em->len; in test_btrfs_get_extent()
675 if (em->start != offset || em->len != sectorsize) { in test_btrfs_get_extent()
677 "unexpected extent wanted start %llu len %u, got start %llu len %llu", in test_btrfs_get_extent()
678 offset, sectorsize, em->start, em->len); in test_btrfs_get_extent()
685 if (em->orig_start != em->start) { in test_btrfs_get_extent()
686 test_err("wrong orig offset, want %llu, have %llu", em->start, in test_btrfs_get_extent()
690 offset = em->start + em->len; in test_btrfs_get_extent()
699 test_err("block start does not match, want %llu got %llu", in test_btrfs_get_extent()
703 if (em->start != offset || em->len != 2 * sectorsize) { in test_btrfs_get_extent()
705 "unexpected extent wanted start %llu len %u, got start %llu len %llu", in test_btrfs_get_extent()
706 offset, 2 * sectorsize, em->start, em->len); in test_btrfs_get_extent()
716 em->start, orig_start); in test_btrfs_get_extent()
724 offset = em->start + em->len; in test_btrfs_get_extent()
737 if (em->start != offset || em->len != sectorsize) { in test_btrfs_get_extent()
739 "unexpected extent wanted start %llu len %u, got start %llu len %llu", in test_btrfs_get_extent()
740 offset, sectorsize, em->start, em->len); in test_btrfs_get_extent()
747 if (em->orig_start != em->start) { in test_btrfs_get_extent()
748 test_err("wrong orig offset, want %llu, have %llu", em->start, in test_btrfs_get_extent()
752 offset = em->start + em->len; in test_btrfs_get_extent()
769 if (em->start != offset || em->len != 3 * sectorsize) { in test_btrfs_get_extent()
771 "unexpected extent wanted start %llu len %u, got start %llu len %llu", in test_btrfs_get_extent()
772 offset, 3 * sectorsize, em->start, em->len); in test_btrfs_get_extent()
780 if (em->orig_start != em->start) { in test_btrfs_get_extent()
781 test_err("wrong orig offset, want %llu, have %llu", em->start, in test_btrfs_get_extent()
785 offset = em->start + em->len; in test_btrfs_get_extent()
797 if (em->start != offset || em->len != sectorsize) { in test_btrfs_get_extent()
799 "unexpected extent wanted start %llu len %u, got start %llu len %llu", in test_btrfs_get_extent()
800 offset, sectorsize, em->start, em->len); in test_btrfs_get_extent()
807 if (em->orig_start != em->start) { in test_btrfs_get_extent()
808 test_err("wrong orig offset, want %llu, have %llu", em->start, in test_btrfs_get_extent()
881 if (em->start != 0 || em->len != sectorsize) { in test_hole_first()
883 "unexpected extent wanted start 0 len %u, got start %llu len %llu", in test_hole_first()
884 sectorsize, em->start, em->len); in test_hole_first()
903 if (em->start != sectorsize || em->len != sectorsize) { in test_hole_first()
905 "unexpected extent wanted start %u len %u, got start %llu len %llu", in test_hole_first()
906 sectorsize, sectorsize, em->start, em->len); in test_hole_first()