]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - mm/migrate.c
memcg: introduce charge-commit-cancel style of functions
[net-next-2.6.git] / mm / migrate.c
index 55373983c9c68410ebdb98883518e7f2b56728bd..246dcb973ae70347a866c4c632d129fa1c6efbfc 100644 (file)
@@ -133,7 +133,7 @@ static void remove_migration_pte(struct vm_area_struct *vma,
         * be reliable, and this charge can actually fail: oh well, we don't
         * make the situation any worse by proceeding as if it had succeeded.
         */
-       mem_cgroup_charge(new, mm, GFP_ATOMIC);
+       mem_cgroup_charge_migrate_fixup(new, mm, GFP_ATOMIC);
 
        get_page(new);
        pte = pte_mkold(mk_pte(new, vma->vm_page_prot));