diff options
Diffstat (limited to 'mm/migrate.c')
-rw-r--r-- | mm/migrate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/migrate.c b/mm/migrate.c index 352de555626..8aacce3af8c 100644 --- a/mm/migrate.c +++ b/mm/migrate.c | |||
@@ -678,7 +678,7 @@ static int unmap_and_move(new_page_t get_new_page, unsigned long private, | |||
678 | } | 678 | } |
679 | 679 | ||
680 | /* charge against new page */ | 680 | /* charge against new page */ |
681 | charge = mem_cgroup_prepare_migration(page, newpage, &mem); | 681 | charge = mem_cgroup_prepare_migration(page, newpage, &mem, GFP_KERNEL); |
682 | if (charge == -ENOMEM) { | 682 | if (charge == -ENOMEM) { |
683 | rc = -ENOMEM; | 683 | rc = -ENOMEM; |
684 | goto unlock; | 684 | goto unlock; |