diff options
| author | Andrew Morton <akpm@osdl.org> | 2004-05-22 08:05:14 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-05-22 08:05:14 -0700 |
| commit | e8a2ef16fd2fbcf65d423a137290f94bd7f2bb02 (patch) | |
| tree | f16dde1bf152f3c8feaa3e9055848b9d316d9475 /include/linux | |
| parent | 6633401dda1a4994174344c80685cd89c7d1e83c (diff) | |
[PATCH] numa api: Add policy support to anonymous memory
From: Andi Kleen <ak@suse.de>
Change to core VM to use alloc_page_vma() instead of alloc_page().
Change the swap readahead to follow the policy of the VMA.
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/swap.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/linux/swap.h b/include/linux/swap.h index 0edc73ed7537..a748538f3a31 100644 --- a/include/linux/swap.h +++ b/include/linux/swap.h @@ -151,7 +151,7 @@ struct swap_list_t { extern void out_of_memory(void); /* linux/mm/memory.c */ -extern void swapin_readahead(swp_entry_t); +extern void swapin_readahead(swp_entry_t, unsigned long, struct vm_area_struct *); /* linux/mm/page_alloc.c */ extern unsigned long totalram_pages; @@ -202,7 +202,8 @@ extern int move_from_swap_cache(struct page *, unsigned long, extern void free_page_and_swap_cache(struct page *); extern void free_pages_and_swap_cache(struct page **, int); extern struct page * lookup_swap_cache(swp_entry_t); -extern struct page * read_swap_cache_async(swp_entry_t); +extern struct page * read_swap_cache_async(swp_entry_t, struct vm_area_struct *vma, + unsigned long addr); /* linux/mm/swapfile.c */ extern int total_swap_pages; @@ -244,7 +245,7 @@ extern spinlock_t swaplock; #define free_swap_and_cache(swp) /*NOTHING*/ #define swap_duplicate(swp) /*NOTHING*/ #define swap_free(swp) /*NOTHING*/ -#define read_swap_cache_async(swp) NULL +#define read_swap_cache_async(swp,vma,addr) NULL #define lookup_swap_cache(swp) NULL #define valid_swaphandles(swp, off) 0 #define can_share_swap_page(p) 0 |
