mm: memcontrol: remove unnecessary PCG_MEM memory charge flag
[deliverable/linux.git] / mm / memcontrol.c
index baf3b535b180d63d4d7d76be79387497f18b7320..3dfb56a9311730f789b59afeb0dfea8f0b25a32b 100644 (file)
@@ -2614,7 +2614,7 @@ static void commit_charge(struct page *page, struct mem_cgroup *memcg,
         *   have the page locked
         */
        pc->mem_cgroup = memcg;
-       pc->flags = PCG_USED | PCG_MEM;
+       pc->flags = PCG_USED;
 
        if (lrucare)
                unlock_page_lru(page, isolated);
@@ -6156,8 +6156,6 @@ void mem_cgroup_migrate(struct page *oldpage, struct page *newpage,
        if (!PageCgroupUsed(pc))
                return;
 
-       VM_BUG_ON_PAGE(!(pc->flags & PCG_MEM), oldpage);
-
        if (lrucare)
                lock_page_lru(oldpage, &isolated);
 
This page took 0.025758 seconds and 5 git commands to generate.