Lines Matching defs:touched
38 static unsigned int touched[NR_SLOTS];
189 touched[s] = 0;
237 * When a VMA is unmapped, the instantiated (touched) pages are
240 * NOTE: This code assumes touched pages have only one user.
242 for (i = 0; i < touched[s]; i++) {
252 * reservation. If those pages were not touched, then they will
256 int unused_surplus = MIN(hpages - touched[s], es);
260 er -= hpages - touched[s];
279 * Keep track of how many pages were touched since we can't easily
284 touched[s] = MAX(touched[s], hpages);
330 /* touched, shared mmap */
336 /* touched, private mmap */
406 /* Now with a pre-existing touched, shared mmap */
407 if (MAP(SL_SETUP, 1, MAP_SHARED, "mmap for test having prior touched shared mmap") ||
408 TOUCH(SL_SETUP, 1, MAP_SHARED, "touching for test having prior touched shared mmap") ||
410 UNMAP(SL_SETUP, 1, MAP_SHARED, "unmap after test having prior touched shared mmap"))
413 /* Now with a pre-existing touched, private mmap */
414 if (MAP(SL_SETUP, 1, MAP_PRIVATE, "mmap for test with having touched private mmap") ||
415 TOUCH(SL_SETUP, 1, MAP_PRIVATE, "touching for test with having touched private mmap") ||
417 UNMAP(SL_SETUP, 1, MAP_PRIVATE, "unmap after test having prior touched private mmap"))