Lines Matching defs:pages
247 static long do_mincore(unsigned long addr, unsigned long pages, unsigned char *vec)
256 end = min(vma->vm_end, addr + (pages << PAGE_SHIFT));
258 unsigned long pages = DIV_ROUND_UP(end - addr, PAGE_SIZE);
259 memset(vec, 1, pages);
260 return pages;
271 * mincore() returns the memory residency status of the pages in the
279 * contain stale information. Only locked pages are guaranteed to
288 * specify one or more pages which are not currently
296 unsigned long pages;
310 pages = len >> PAGE_SHIFT;
311 pages += (offset_in_page(len)) != 0;
313 if (!access_ok(vec, pages))
321 while (pages) {
327 retval = do_mincore(start, min(pages, PAGE_SIZE), tmp);
336 pages -= retval;