diff options
Diffstat (limited to 'mm/migrate.c')
-rw-r--r-- | mm/migrate.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mm/migrate.c b/mm/migrate.c index 02ce25df16c2..c3cb566af3e2 100644 --- a/mm/migrate.c +++ b/mm/migrate.c | |||
@@ -37,6 +37,7 @@ | |||
37 | #include <linux/gfp.h> | 37 | #include <linux/gfp.h> |
38 | #include <linux/balloon_compaction.h> | 38 | #include <linux/balloon_compaction.h> |
39 | #include <linux/mmu_notifier.h> | 39 | #include <linux/mmu_notifier.h> |
40 | #include <linux/page_idle.h> | ||
40 | 41 | ||
41 | #include <asm/tlbflush.h> | 42 | #include <asm/tlbflush.h> |
42 | 43 | ||
@@ -524,6 +525,11 @@ void migrate_page_copy(struct page *newpage, struct page *page) | |||
524 | __set_page_dirty_nobuffers(newpage); | 525 | __set_page_dirty_nobuffers(newpage); |
525 | } | 526 | } |
526 | 527 | ||
528 | if (page_is_young(page)) | ||
529 | set_page_young(newpage); | ||
530 | if (page_is_idle(page)) | ||
531 | set_page_idle(newpage); | ||
532 | |||
527 | /* | 533 | /* |
528 | * Copy NUMA information to the new page, to prevent over-eager | 534 | * Copy NUMA information to the new page, to prevent over-eager |
529 | * future migrations of this same page. | 535 | * future migrations of this same page. |