Memory controller: make charging gfp mask aware
[linux-2.6.git] / mm / migrate.c
index 417bbda..7637941 100644 (file)
@@ -153,7 +153,7 @@ static void remove_migration_pte(struct vm_area_struct *vma,
                return;
        }
 
-       if (mem_cgroup_charge(new, mm)) {
+       if (mem_cgroup_charge(new, mm, GFP_KERNEL)) {
                pte_unmap(ptep);
                return;
        }