memcg: don't trigger oom at page migration
[sfrench/cifs-2.6.git] / mm / memcontrol.c
index 8d2e5c8a25b183c78237efb633ca020cf1ac9393..3ba72e6556ccac9f3fdf034c8a4b5f6fd2036d50 100644 (file)
@@ -1361,7 +1361,7 @@ int mem_cgroup_prepare_migration(struct page *page, struct mem_cgroup **ptr)
        unlock_page_cgroup(pc);
 
        if (mem) {
-               ret = mem_cgroup_try_charge(NULL, GFP_KERNEL, &mem);
+               ret = __mem_cgroup_try_charge(NULL, GFP_KERNEL, &mem, false);
                css_put(&mem->css);
        }
        *ptr = mem;