Lines Matching defs:pages
56 static long do_mincore(unsigned long addr, unsigned char *vec, unsigned long pages)
76 * Calculate how many pages there are left in the last level of the
89 nr = min(nr, pages);
159 * mincore() returns the memory residency status of the pages in the
167 * contain stale information. Only locked pages are guaranteed to
176 * specify one or more pages which are not currently
184 unsigned long pages;
196 pages = len >> PAGE_SHIFT;
197 pages += (len & ~PAGE_MASK) != 0;
199 if (!access_ok(VERIFY_WRITE, vec, pages))
207 while (pages) {
213 retval = do_mincore(start, tmp, min(pages, PAGE_SIZE));
222 pages -= retval;