aboutsummaryrefslogtreecommitdiffstats
path: root/mm/migrate.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/migrate.c')
-rw-r--r--mm/migrate.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mm/migrate.c b/mm/migrate.c
index 89ea0854332e..fc391985899f 100644
--- a/mm/migrate.c
+++ b/mm/migrate.c
@@ -777,6 +777,8 @@ static int unmap_and_move(new_page_t get_new_page, unsigned long private,
777 if (!newpage) 777 if (!newpage)
778 return -ENOMEM; 778 return -ENOMEM;
779 779
780 mem_cgroup_reset_owner(newpage);
781
780 if (page_count(page) == 1) { 782 if (page_count(page) == 1) {
781 /* page was freed from under us. So we are done. */ 783 /* page was freed from under us. So we are done. */
782 goto out; 784 goto out;