diff options
Diffstat (limited to 'mm/vmscan.c')
-rw-r--r-- | mm/vmscan.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/mm/vmscan.c b/mm/vmscan.c index 8f326ce2b690..5e98b86feb74 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c | |||
@@ -804,6 +804,15 @@ int migrate_page(struct page *newpage, struct page *page) | |||
804 | 804 | ||
805 | migrate_page_copy(newpage, page); | 805 | migrate_page_copy(newpage, page); |
806 | 806 | ||
807 | /* | ||
808 | * Remove auxiliary swap entries and replace | ||
809 | * them with real ptes. | ||
810 | * | ||
811 | * Note that a real pte entry will allow processes that are not | ||
812 | * waiting on the page lock to use the new page via the page tables | ||
813 | * before the new page is unlocked. | ||
814 | */ | ||
815 | remove_from_swap(newpage); | ||
807 | return 0; | 816 | return 0; |
808 | } | 817 | } |
809 | 818 | ||