mm: memcg: switch to css_tryget() in get_mem_cgroup_from_mm()
[linux-2.6-microblaze.git] / mm / memcontrol.c
index 37592dd..46ad252 100644 (file)
@@ -960,7 +960,7 @@ struct mem_cgroup *get_mem_cgroup_from_mm(struct mm_struct *mm)
                        if (unlikely(!memcg))
                                memcg = root_mem_cgroup;
                }
-       } while (!css_tryget_online(&memcg->css));
+       } while (!css_tryget(&memcg->css));
        rcu_read_unlock();
        return memcg;
 }