diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index 37592dd7ae3264ba4bf8cc94c63910f56585aa5b..46ad252e6d6aa62c09bffac5a5fffdd0bd641f83 100644
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -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;
 }