]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - mm/memcontrol.c
memcg: move_lists on page not page_cgroup
[linux-2.6-omap-h63xx.git] / mm / memcontrol.c
index 41041c0a6898502091f7eacf156b5a854e906d54..afdd406f618ac7de41d0b96f389d3c116ba054f1 100644 (file)
@@ -407,11 +407,13 @@ int task_in_mem_cgroup(struct task_struct *task, const struct mem_cgroup *mem)
 /*
  * This routine assumes that the appropriate zone's lru lock is already held
  */
-void mem_cgroup_move_lists(struct page_cgroup *pc, bool active)
+void mem_cgroup_move_lists(struct page *page, bool active)
 {
+       struct page_cgroup *pc;
        struct mem_cgroup_per_zone *mz;
        unsigned long flags;
 
+       pc = page_get_page_cgroup(page);
        if (!pc)
                return;