diff options
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)) |