memcontrol: only transfer the memcg data for migration
[linux-2.6-microblaze.git] / mm / filemap.c
index b04ba89..48cd16c 100644 (file)
@@ -816,7 +816,7 @@ void replace_page_cache_folio(struct folio *old, struct folio *new)
        new->mapping = mapping;
        new->index = offset;
 
-       mem_cgroup_migrate(old, new);
+       mem_cgroup_replace_folio(old, new);
 
        xas_lock_irq(&xas);
        xas_store(&xas, new);