Lines Matching full:start
16 static void insert_extent(struct btrfs_root *root, u64 start, u64 len, in insert_extent() argument
35 key.offset = start; in insert_extent()
301 if (em->start != 0 || em->len != sectorsize) { in test_btrfs_get_extent()
303 "unexpected extent wanted start 0 len %u, got start %llu len %llu", in test_btrfs_get_extent()
304 sectorsize, em->start, em->len); in test_btrfs_get_extent()
316 offset = em->start + em->len; in test_btrfs_get_extent()
328 if (em->start != offset || em->len != 4) { in test_btrfs_get_extent()
330 "unexpected extent wanted start %llu len 4, got start %llu len %llu", in test_btrfs_get_extent()
331 offset, em->start, em->len); in test_btrfs_get_extent()
338 offset = em->start + em->len; in test_btrfs_get_extent()
351 if (em->start != offset || em->len != sectorsize - 1) { in test_btrfs_get_extent()
353 "unexpected extent wanted start %llu len 4095, got start %llu len %llu", in test_btrfs_get_extent()
354 offset, em->start, em->len); in test_btrfs_get_extent()
365 offset = em->start + em->len; in test_btrfs_get_extent()
378 if (em->start != offset || em->len != sectorsize) { in test_btrfs_get_extent()
380 "unexpected extent start %llu len %u, got start %llu len %llu", in test_btrfs_get_extent()
381 offset, sectorsize, em->start, em->len); in test_btrfs_get_extent()
393 orig_start = em->start; in test_btrfs_get_extent()
394 offset = em->start + em->len; in test_btrfs_get_extent()
406 if (em->start != offset || em->len != sectorsize) { in test_btrfs_get_extent()
408 "unexpected extent wanted start %llu len %u, got start %llu len %llu", in test_btrfs_get_extent()
409 offset, sectorsize, em->start, em->len); in test_btrfs_get_extent()
416 offset = em->start + em->len; in test_btrfs_get_extent()
428 if (em->start != offset || em->len != 2 * sectorsize) { in test_btrfs_get_extent()
430 "unexpected extent wanted start %llu len %u, got start %llu len %llu", in test_btrfs_get_extent()
431 offset, 2 * sectorsize, em->start, em->len); in test_btrfs_get_extent()
438 if (em->start - em->offset != orig_start) { in test_btrfs_get_extent()
439 test_err("wrong offset, em->start=%llu em->offset=%llu orig_start=%llu", in test_btrfs_get_extent()
440 em->start, em->offset, orig_start); in test_btrfs_get_extent()
443 disk_bytenr += (em->start - orig_start); in test_btrfs_get_extent()
445 test_err("wrong block start, want %llu, have %llu", in test_btrfs_get_extent()
449 offset = em->start + em->len; in test_btrfs_get_extent()
462 if (em->start != offset || em->len != sectorsize) { in test_btrfs_get_extent()
464 "unexpected extent wanted start %llu len %u, got start %llu len %llu", in test_btrfs_get_extent()
465 offset, sectorsize, em->start, em->len); in test_btrfs_get_extent()
477 offset = em->start + em->len; in test_btrfs_get_extent()
490 if (em->start != offset || em->len != sectorsize) { in test_btrfs_get_extent()
492 "unexpected extent wanted start %llu len %u, got start %llu len %llu", in test_btrfs_get_extent()
493 offset, sectorsize, em->start, em->len); in test_btrfs_get_extent()
506 orig_start = em->start; in test_btrfs_get_extent()
507 offset = em->start + em->len; in test_btrfs_get_extent()
519 if (em->start != offset || em->len != sectorsize) { in test_btrfs_get_extent()
521 "unexpected extent wanted start %llu len %u, got start %llu len %llu", in test_btrfs_get_extent()
522 offset, sectorsize, em->start, em->len); in test_btrfs_get_extent()
529 if (em->start - em->offset != orig_start) { in test_btrfs_get_extent()
531 em->start - orig_start, em->offset); in test_btrfs_get_extent()
535 test_err("unexpected block start, wanted %llu, have %llu", in test_btrfs_get_extent()
539 offset = em->start + em->len; in test_btrfs_get_extent()
551 if (em->start != offset || em->len != 2 * sectorsize) { in test_btrfs_get_extent()
553 "unexpected extent wanted start %llu len %u, got start %llu len %llu", in test_btrfs_get_extent()
554 offset, 2 * sectorsize, em->start, em->len); in test_btrfs_get_extent()
562 if (em->start - em->offset != orig_start) { in test_btrfs_get_extent()
563 test_err("wrong offset, em->start=%llu em->offset=%llu orig_start=%llu", in test_btrfs_get_extent()
564 em->start, em->offset, orig_start); in test_btrfs_get_extent()
568 test_err("unexpected block start, wanted %llu, have %llu", in test_btrfs_get_extent()
572 offset = em->start + em->len; in test_btrfs_get_extent()
585 if (em->start != offset || em->len != 2 * sectorsize) { in test_btrfs_get_extent()
587 "unexpected extent wanted start %llu len %u, got start %llu len %llu", in test_btrfs_get_extent()
588 offset, 2 * sectorsize, em->start, em->len); in test_btrfs_get_extent()
605 offset = em->start + em->len; in test_btrfs_get_extent()
618 if (em->start != offset || em->len != sectorsize) { in test_btrfs_get_extent()
620 "unexpected extent wanted start %llu len %u, got start %llu len %llu", in test_btrfs_get_extent()
621 offset, sectorsize, em->start, em->len); in test_btrfs_get_extent()
639 orig_start = em->start; in test_btrfs_get_extent()
640 offset = em->start + em->len; in test_btrfs_get_extent()
652 if (em->start != offset || em->len != sectorsize) { in test_btrfs_get_extent()
654 "unexpected extent wanted start %llu len %u, got start %llu len %llu", in test_btrfs_get_extent()
655 offset, sectorsize, em->start, em->len); in test_btrfs_get_extent()
666 offset = em->start + em->len; in test_btrfs_get_extent()
675 test_err("block start does not match, want %llu got %llu", in test_btrfs_get_extent()
679 if (em->start != offset || em->len != 2 * sectorsize) { in test_btrfs_get_extent()
681 "unexpected extent wanted start %llu len %u, got start %llu len %llu", in test_btrfs_get_extent()
682 offset, 2 * sectorsize, em->start, em->len); in test_btrfs_get_extent()
690 if (em->start - em->offset != orig_start) { in test_btrfs_get_extent()
691 test_err("wrong offset, em->start=%llu em->offset=%llu orig_start=%llu", in test_btrfs_get_extent()
692 em->start, em->offset, orig_start); in test_btrfs_get_extent()
700 offset = em->start + em->len; in test_btrfs_get_extent()
713 if (em->start != offset || em->len != sectorsize) { in test_btrfs_get_extent()
715 "unexpected extent wanted start %llu len %u, got start %llu len %llu", in test_btrfs_get_extent()
716 offset, sectorsize, em->start, em->len); in test_btrfs_get_extent()
727 offset = em->start + em->len; in test_btrfs_get_extent()
744 if (em->start != offset || em->len != 3 * sectorsize) { in test_btrfs_get_extent()
746 "unexpected extent wanted start %llu len %u, got start %llu len %llu", in test_btrfs_get_extent()
747 offset, 3 * sectorsize, em->start, em->len); in test_btrfs_get_extent()
759 offset = em->start + em->len; in test_btrfs_get_extent()
771 if (em->start != offset || em->len != sectorsize) { in test_btrfs_get_extent()
773 "unexpected extent wanted start %llu len %u, got start %llu len %llu", in test_btrfs_get_extent()
774 offset, sectorsize, em->start, em->len); in test_btrfs_get_extent()
850 if (em->start != 0 || em->len != sectorsize) { in test_hole_first()
852 "unexpected extent wanted start 0 len %u, got start %llu len %llu", in test_hole_first()
853 sectorsize, em->start, em->len); in test_hole_first()
872 if (em->start != sectorsize || em->len != sectorsize) { in test_hole_first()
874 "unexpected extent wanted start %u len %u, got start %llu len %llu", in test_hole_first()
875 sectorsize, sectorsize, em->start, em->len); in test_hole_first()