diff options
author | Christoph Lameter <clameter@sgi.com> | 2006-01-08 04:00:52 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-08 23:12:42 -0500 |
commit | 8419c3181086c86664e8246bc997afc2e4ffba4f (patch) | |
tree | 25938e6f99bdaaffe8f6d357582eca56692b091c /include/linux | |
parent | 39743889aaf76725152f16aa90ca3c45f6d52da3 (diff) |
[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>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/swap.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/linux/swap.h b/include/linux/swap.h index 117add066f00..997d838f0e70 100644 --- a/include/linux/swap.h +++ b/include/linux/swap.h | |||
@@ -175,10 +175,9 @@ extern int try_to_free_pages(struct zone **, gfp_t); | |||
175 | extern int shrink_all_memory(int); | 175 | extern int shrink_all_memory(int); |
176 | extern int vm_swappiness; | 176 | extern int vm_swappiness; |
177 | 177 | ||
178 | #ifdef CONFIG_MIGRATION | ||
178 | extern int isolate_lru_page(struct page *p); | 179 | extern int isolate_lru_page(struct page *p); |
179 | extern int putback_lru_pages(struct list_head *l); | 180 | extern int putback_lru_pages(struct list_head *l); |
180 | |||
181 | #ifdef CONFIG_MIGRATION | ||
182 | extern int migrate_pages(struct list_head *l, struct list_head *t); | 181 | extern int migrate_pages(struct list_head *l, struct list_head *t); |
183 | #endif | 182 | #endif |
184 | 183 | ||