#include <linux/mm.h>
#include <linux/sched.h>
#include <linux/kernel_stat.h>
#include <linux/swap.h>
#include <linux/mman.h>
#include <linux/pagemap.h>
#include <linux/pagevec.h>
#include <linux/init.h>
#include <linux/export.h>
#include <linux/mm_inline.h>
#include <linux/percpu_counter.h>
#include <linux/percpu.h>
#include <linux/cpu.h>
#include <linux/notifier.h>
#include <linux/backing-dev.h>
#include <linux/memcontrol.h>
#include <linux/gfp.h>
#include "internal.h"
Go to the source code of this file.
|
void | put_page (struct page *page) |
|
| EXPORT_SYMBOL (put_page) |
|
bool | __get_page_tail (struct page *page) |
|
| EXPORT_SYMBOL (__get_page_tail) |
|
void | put_pages_list (struct list_head *pages) |
|
| EXPORT_SYMBOL (put_pages_list) |
|
int | get_kernel_pages (const struct kvec *kiov, int nr_segs, int write, struct page **pages) |
|
| EXPORT_SYMBOL_GPL (get_kernel_pages) |
|
int | get_kernel_page (unsigned long start, int write, struct page **pages) |
|
| EXPORT_SYMBOL_GPL (get_kernel_page) |
|
void | rotate_reclaimable_page (struct page *page) |
|
void | activate_page (struct page *page) |
|
void | mark_page_accessed (struct page *page) |
|
| EXPORT_SYMBOL (mark_page_accessed) |
|
void | __lru_cache_add (struct page *page, enum lru_list lru) |
|
| EXPORT_SYMBOL (__lru_cache_add) |
|
void | lru_cache_add_lru (struct page *page, enum lru_list lru) |
|
void | add_page_to_unevictable_list (struct page *page) |
|
void | lru_add_drain_cpu (int cpu) |
|
void | deactivate_page (struct page *page) |
|
void | lru_add_drain (void) |
|
int | lru_add_drain_all (void) |
|
void | release_pages (struct page **pages, int nr, int cold) |
|
| EXPORT_SYMBOL (release_pages) |
|
void | __pagevec_release (struct pagevec *pvec) |
|
| EXPORT_SYMBOL (__pagevec_release) |
|
void | __pagevec_lru_add (struct pagevec *pvec, enum lru_list lru) |
|
| EXPORT_SYMBOL (__pagevec_lru_add) |
|
unsigned | pagevec_lookup (struct pagevec *pvec, struct address_space *mapping, pgoff_t start, unsigned nr_pages) |
|
| EXPORT_SYMBOL (pagevec_lookup) |
|
unsigned | pagevec_lookup_tag (struct pagevec *pvec, struct address_space *mapping, pgoff_t *index, int tag, unsigned nr_pages) |
|
| EXPORT_SYMBOL (pagevec_lookup_tag) |
|
void __init | swap_setup (void) |
|
pagevec_lookup - gang pagecache lookup : Where the resulting pages are placed : The address_space to search : The starting page index : The maximum number of pages
pagevec_lookup() will search for and return a group of up to pages in the mapping. The pages are placed in . pagevec_lookup() takes a reference against the pages in .
The search returns a group of mapping-contiguous pages with ascending indexes. There may be holes in the indices due to not-present pages.
pagevec_lookup() returns the number of pages which were found.
Definition at line 835 of file swap.c.