[PATCH] SwapMig: CONFIG_MIGRATION fixes
Move move_to_lru, putback_lru_pages and isolate_lru in section surrounded by CONFIG_MIGRATION saving some codesize for single processor kernels. Signed-off-by: Christoph Lameter <clameter@sgi.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
39743889aa
commit
8419c31810
2 changed files with 77 additions and 78 deletions
|
@ -175,10 +175,9 @@ extern int try_to_free_pages(struct zone **, gfp_t);
|
|||
extern int shrink_all_memory(int);
|
||||
extern int vm_swappiness;
|
||||
|
||||
#ifdef CONFIG_MIGRATION
|
||||
extern int isolate_lru_page(struct page *p);
|
||||
extern int putback_lru_pages(struct list_head *l);
|
||||
|
||||
#ifdef CONFIG_MIGRATION
|
||||
extern int migrate_pages(struct list_head *l, struct list_head *t);
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue