Lines Matching full:end

21 static noinline int process_page_range(struct inode *inode, u64 start, u64 end,  in process_page_range()  argument
27 unsigned long end_index = end >> PAGE_SHIFT; in process_page_range()
53 "stuck in a loop, start %llu, end %llu, ret %d\n", in process_page_range()
54 start, end, ret); in process_page_range()
104 state->end + 1 - state->start, flags_str); in dump_extent_io_tree()
121 u64 start, end, test_start; in test_find_delalloc() local
182 end = start + PAGE_SIZE - 1; in test_find_delalloc()
184 &end); in test_find_delalloc()
189 if (start != 0 || end != (sectorsize - 1)) { in test_find_delalloc()
190 test_err("expected start 0 end %u, got start %llu end %llu", in test_find_delalloc()
191 sectorsize - 1, start, end); in test_find_delalloc()
194 unlock_extent(tmp, start, end, NULL); in test_find_delalloc()
213 end = start + PAGE_SIZE - 1; in test_find_delalloc()
215 &end); in test_find_delalloc()
220 if (start != test_start || end != max_bytes - 1) { in test_find_delalloc()
221 test_err("expected start %llu end %llu, got start %llu, end %llu", in test_find_delalloc()
222 test_start, max_bytes - 1, start, end); in test_find_delalloc()
225 if (process_page_range(inode, start, end, in test_find_delalloc()
230 unlock_extent(tmp, start, end, NULL); in test_find_delalloc()
247 end = start + PAGE_SIZE - 1; in test_find_delalloc()
249 &end); in test_find_delalloc()
254 if (end != test_start + PAGE_SIZE - 1) { in test_find_delalloc()
255 test_err("did not return the proper end offset"); in test_find_delalloc()
268 end = start + PAGE_SIZE - 1; in test_find_delalloc()
270 &end); in test_find_delalloc()
275 if (start != test_start || end != total_dirty - 1) { in test_find_delalloc()
276 test_err("expected start %llu end %llu, got start %llu end %llu", in test_find_delalloc()
277 test_start, total_dirty - 1, start, end); in test_find_delalloc()
280 if (process_page_range(inode, start, end, in test_find_delalloc()
285 unlock_extent(tmp, start, end, NULL); in test_find_delalloc()
303 end = start + PAGE_SIZE - 1; in test_find_delalloc()
311 &end); in test_find_delalloc()
316 if (start != test_start && end != test_start + PAGE_SIZE - 1) { in test_find_delalloc()
317 test_err("expected start %llu end %llu, got start %llu end %llu", in test_find_delalloc()
318 test_start, test_start + PAGE_SIZE - 1, start, end); in test_find_delalloc()
321 if (process_page_range(inode, start, end, PROCESS_TEST_LOCKED | in test_find_delalloc()
563 u64 start, end; in test_find_first_clear_extent_bit() local
571 find_first_clear_extent_bit(&tree, 0, &start, &end, CHUNK_TRIMMED); in test_find_first_clear_extent_bit()
572 if (start != 0 || end != -1) { in test_find_first_clear_extent_bit()
574 "error getting a range from completely empty tree: start %llu end %llu", in test_find_first_clear_extent_bit()
575 start, end); in test_find_first_clear_extent_bit()
585 find_first_clear_extent_bit(&tree, SZ_512K, &start, &end, in test_find_first_clear_extent_bit()
588 if (start != 0 || end != SZ_1M - 1) { in test_find_first_clear_extent_bit()
589 test_err("error finding beginning range: start %llu end %llu", in test_find_first_clear_extent_bit()
590 start, end); in test_find_first_clear_extent_bit()
601 find_first_clear_extent_bit(&tree, 12 * SZ_1M, &start, &end, in test_find_first_clear_extent_bit()
604 if (start != SZ_4M || end != SZ_32M - 1) { in test_find_first_clear_extent_bit()
605 test_err("error finding trimmed range: start %llu end %llu", in test_find_first_clear_extent_bit()
606 start, end); in test_find_first_clear_extent_bit()
614 find_first_clear_extent_bit(&tree, SZ_2M, &start, &end, in test_find_first_clear_extent_bit()
617 if (start != SZ_4M || end != SZ_32M - 1) { in test_find_first_clear_extent_bit()
618 test_err("error finding next unalloc range: start %llu end %llu", in test_find_first_clear_extent_bit()
619 start, end); in test_find_first_clear_extent_bit()
628 find_first_clear_extent_bit(&tree, SZ_64M + SZ_1M, &start, &end, in test_find_first_clear_extent_bit()
631 if (start != SZ_64M || end != SZ_64M + SZ_8M - 1) { in test_find_first_clear_extent_bit()
632 test_err("error finding exact range: start %llu end %llu", in test_find_first_clear_extent_bit()
633 start, end); in test_find_first_clear_extent_bit()
637 find_first_clear_extent_bit(&tree, SZ_64M - SZ_8M, &start, &end, in test_find_first_clear_extent_bit()
644 if (start != SZ_64M || end != SZ_64M + SZ_8M - 1) { in test_find_first_clear_extent_bit()
645 test_err("error finding next alloc range: start %llu end %llu", in test_find_first_clear_extent_bit()
646 start, end); in test_find_first_clear_extent_bit()
652 * and end should be -1 in test_find_first_clear_extent_bit()
654 find_first_clear_extent_bit(&tree, -1, &start, &end, CHUNK_TRIMMED); in test_find_first_clear_extent_bit()
655 if (start != SZ_64M + SZ_8M || end != -1) { in test_find_first_clear_extent_bit()
657 "error handling beyond end of range search: start %llu end %llu", in test_find_first_clear_extent_bit()
658 start, end); in test_find_first_clear_extent_bit()