Lines Matching refs:i
36 for (size_t i = 0; i < ARRAY_SIZE(fds); i++) { in thrashing_test() local
37 fds[i] = create_tmp_file(tmpnames[i], filesize); in thrashing_test()
38 if (fds[i] < 0) { in thrashing_test()
43 for (size_t i = 0; i < ARRAY_SIZE(fds); i++) { in thrashing_test() local
44 bufs[i] = mmap(NULL, filesize, PROT_READ, MAP_PRIVATE, fds[i], 0); in thrashing_test()
45 if (bufs[i] == ((void *)-1)) { in thrashing_test()
51 ret = madvise((void *)bufs[i], filesize, MADV_RANDOM) || in thrashing_test()
52 posix_fadvise(fds[i], 0, filesize, POSIX_FADV_RANDOM); in thrashing_test()
59 for (int i = 0; i < test_runs; i++) { in thrashing_test() local
79 for (size_t i = 0; i < ARRAY_SIZE(bufs) && bufs[i] != NULL; i++) { in thrashing_test() local
80 munmap((void *)bufs[i], filesize); in thrashing_test()
83 for (size_t i = 0; i < ARRAY_SIZE(fds) && fds[i] >= 0; i++) { in thrashing_test() local
84 close(fds[i]); in thrashing_test()