diff options
author | Lee Schermerhorn <Lee.Schermerhorn@hp.com> | 2009-12-14 20:59:54 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-12-15 11:53:23 -0500 |
commit | 418b27ef50e7e9b0c2fbd88db804bf065e5eb1a6 (patch) | |
tree | 24a4354bfa3bda6c763b859c235669c939c97ce4 /mm/migrate.c | |
parent | 4eb2b1dcd598f8489130405c81c60c289896d92a (diff) |
mm: remove unevictable_migrate_page function
unevictable_migrate_page() in mm/internal.h is a relic of the since
removed UNEVICTABLE_LRU Kconfig option. This patch removes the function
and open codes the test in migrate_page_copy().
Signed-off-by: Lee Schermerhorn <lee.schermerhorn@hp.com>
Reviewed-by: Christoph Lameter <cl@linux-foundation.org>
Acked-by: Hugh Dickins <hugh.dickins@tiscali.co.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/migrate.c')
-rw-r--r-- | mm/migrate.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/migrate.c b/mm/migrate.c index 2a0ea3ef509e..efddbf0926b2 100644 --- a/mm/migrate.c +++ b/mm/migrate.c | |||
@@ -288,8 +288,8 @@ static void migrate_page_copy(struct page *newpage, struct page *page) | |||
288 | if (TestClearPageActive(page)) { | 288 | if (TestClearPageActive(page)) { |
289 | VM_BUG_ON(PageUnevictable(page)); | 289 | VM_BUG_ON(PageUnevictable(page)); |
290 | SetPageActive(newpage); | 290 | SetPageActive(newpage); |
291 | } else | 291 | } else if (TestClearPageUnevictable(page)) |
292 | unevictable_migrate_page(newpage, page); | 292 | SetPageUnevictable(newpage); |
293 | if (PageChecked(page)) | 293 | if (PageChecked(page)) |
294 | SetPageChecked(newpage); | 294 | SetPageChecked(newpage); |
295 | if (PageMappedToDisk(page)) | 295 | if (PageMappedToDisk(page)) |