Lines Matching full:k

44  * extent [0, 16K), followed by another file extent [16K, 20K), two dio reads
45 * are entering btrfs_get_extent() concurrently, t1 is reading [8K, 16K), t2 is
46 * reading [0, 8K)
51 * -> add_extent_mapping(0, 16K)
53 * ->add_extent_mapping(0, 16K)
70 /* Add [0, 16K) */ in test_case_1()
79 test_err("cannot add extent range [0, 16K)"); in test_case_1()
84 /* Add [16K, 20K) following [0, 16K) */ in test_case_1()
100 test_err("cannot add extent range [16K, 20K)"); in test_case_1()
112 /* Add [0, 8K), should return [0, 16K) instead. */ in test_case_1()
163 /* Add [0, 1K) */ in test_case_2()
172 test_err("cannot add extent range [0, 1K)"); in test_case_2()
177 /* Add [4K, 8K) following [0, 1K) */ in test_case_2()
193 test_err("cannot add extent range [4K, 8K)"); in test_case_2()
205 /* Add [0, 1K) */ in test_case_2()
214 test_err("case2 [0 1K]: ret %d", ret); in test_case_2()
218 test_err("case2 [0 1K]: no extent map returned"); in test_case_2()
225 "case2 [0 1K]: ret %d return a wrong em (start %llu len %llu block_start %llu block_len %llu", in test_case_2()
250 /* Add [4K, 8K) */ in __test_case_3()
259 test_err("cannot add extent range [4K, 8K)"); in __test_case_3()
271 /* Add [0, 16K) */ in __test_case_3()
313 * There is a file extent [0, 16K), two jobs are running concurrently
314 * against it, t1 is buffered writing to [4K, 8K) and t2 is doing dio
315 * read from [0, 4K) or [8K, 12K) or [12K, 16K).
317 * t1 goes ahead of t2 and adds em [4K, 8K) into tree.
354 /* Add [0K, 8K) */ in __test_case_4()
363 test_err("cannot add extent range [0, 8K)"); in __test_case_4()
375 /* Add [8K, 32K) */ in __test_case_4()
384 test_err("cannot add extent range [8K, 32K)"); in __test_case_4()
395 /* Add [0K, 32K) */ in __test_case_4()
432 * There is a file extent [0, 32K), two jobs are running concurrently
433 * against it, t1 is doing dio write to [8K, 32K) and t2 is doing dio
434 * read from [0, 4K) or [4K, 8K).
436 * t1 goes ahead of t2 and splits em [0, 32K) to em [0K, 8K) and [8K 32K).
443 * # load [0, 32K)
446 * # split [0, 32K)
448 * # add [8K, 32K)
451 * # [0, 32K)
504 { .start = 0, .len = SZ_8K }, /* [0, 8K) */
505 { .start = SZ_4K * 3, .len = SZ_4K * 3}, /* [12k, 24k) */
506 { .start = SZ_4K * 6, .len = SZ_4K * 3}, /* [24k, 36k) */
507 { .start = SZ_32K + SZ_4K, .len = SZ_4K}, /* [36k, 40k) */
508 { .start = SZ_4K * 10, .len = SZ_4K * 6}, /* [40k, 64k) */
511 { .start = 0, .len = SZ_8K }, /* [0, 8K) */
512 { .start = SZ_4K * 5, .len = SZ_4K}, /* [20k, 24k) */
513 { .start = SZ_4K * 6, .len = SZ_4K * 3}, /* [24k, 36k) */
514 { .start = SZ_32K + SZ_4K, .len = SZ_4K}, /* [36k, 40k) */
515 { .start = SZ_4K * 10, .len = SZ_4K * 6}, /* [40k, 64k) */
518 { .start = 0, .len = SZ_8K }, /* [0, 8K) */
519 { .start = SZ_4K * 5, .len = SZ_4K}, /* [20k, 24k) */
520 { .start = SZ_4K * 6, .len = SZ_4K}, /* [24k, 28k) */
521 { .start = SZ_32K, .len = SZ_4K}, /* [32k, 36k) */
522 { .start = SZ_32K + SZ_4K, .len = SZ_4K}, /* [36k, 40k) */
523 { .start = SZ_4K * 10, .len = SZ_4K * 6}, /* [40k, 64k) */
526 { .start = 0, .len = SZ_8K}, /* [0, 8K) */
527 { .start = SZ_4K * 5, .len = SZ_4K}, /* [20k, 24k) */
528 { .start = SZ_4K * 6, .len = SZ_4K}, /* [24k, 28k) */
579 * [0, 12k)[12k, 24k)[24k, 36k)[36k, 40k)[40k,64k)
583 * [8k, 12k) - test the single front split
584 * [12k, 20k) - test the single back split
585 * [28k, 32k) - test the double split
586 * [32k, 64k) - test whole em dropping
608 /* [0, 12k) */ in test_case_5()
611 test_err("cannot add extent range [0, 12K)"); in test_case_5()
615 /* [12k, 24k) */ in test_case_5()
618 test_err("cannot add extent range [12k, 24k)"); in test_case_5()
622 /* [24k, 36k) */ in test_case_5()
625 test_err("cannot add extent range [12k, 24k)"); in test_case_5()
629 /* [36k, 40k) */ in test_case_5()
632 test_err("cannot add extent range [12k, 24k)"); in test_case_5()
636 /* [40k, 64k) */ in test_case_5()
639 test_err("cannot add extent range [12k, 24k)"); in test_case_5()
643 /* Drop [8k, 12k) */ in test_case_5()
651 /* Drop [12k, 20k) */ in test_case_5()
659 /* Drop [28k, 32k) */ in test_case_5()
667 /* Drop [32k, 64k) */ in test_case_5()
722 test_err("unexpected em->len %llu, expected 4K", em->len); in test_case_6()
761 /* [0, 16K), pinned */ in test_case_7()
783 /* [32K, 48K), not pinned */ in test_case_7()
798 * Drop [0, 36K) This should skip the [0, 4K) extent and then split the in test_case_7()
799 * [32K, 48K) extent. in test_case_7()
818 test_err("em->len is %llu, expected 16K", em->len); in test_case_7()
836 test_err("didn't find an em at 32K as expected"); in test_case_7()
841 test_err("em->start is %llu, expected 36K", em->start); in test_case_7()
846 test_err("em->len is %llu, expected 12K", em->len); in test_case_7()
856 test_err("found an unexpected em above 48K"); in test_case_7()