• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/mm/

Lines Matching refs:pages

41 /* How many pages do we try to swap or page in/out together? */
48 * This path almost never happens for VM activity - pages are normally
87 * put_pages_list() - release a list of pages
88 * @pages: list of pages threaded on page->lru
90 * Release a list of pages which are strung together on page.lru. Currently
93 void put_pages_list(struct list_head *pages)
95 while (!list_empty(pages)) {
98 victim = list_entry(pages->prev, struct page, lru);
116 struct page *page = pvec->pages[i];
134 release_pages(pvec->pages, pvec->nr, pvec->cold);
271 * Drain pages out of the cpu's pagevecs.
319 * passed pages. If it fell to zero then remove the page from the LRU and
330 void release_pages(struct page **pages, int nr, int cold)
339 struct page *page = pages[i];
384 * The pages which we're about to release may be in the deferred lru-addition
386 * OK from a correctness point of view but is inefficient - those pages may be
396 release_pages(pvec->pages, pagevec_count(pvec), pvec->cold);
403 * Add the passed pages to the LRU, then drop the caller's refcount
414 struct page *page = pvec->pages[i];
438 release_pages(pvec->pages, pvec->nr, pvec->cold);
445 * Try to drop buffers from the pages in a pagevec
452 struct page *page = pvec->pages[i];
464 * @pvec: Where the resulting pages are placed
467 * @nr_pages: The maximum number of pages
469 * pagevec_lookup() will search for and return a group of up to @nr_pages pages
470 * in the mapping. The pages are placed in @pvec. pagevec_lookup() takes a
471 * reference against the pages in @pvec.
473 * The search returns a group of mapping-contiguous pages with ascending
474 * indexes. There may be holes in the indices due to not-present pages.
476 * pagevec_lookup() returns the number of pages which were found.
481 pvec->nr = find_get_pages(mapping, start, nr_pages, pvec->pages);
491 nr_pages, pvec->pages);