|
@@ -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);
|
|
|
|