aboutsummaryrefslogtreecommitdiffstats
path: root/mm/memcontrol.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/memcontrol.c')
-rw-r--r--mm/memcontrol.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index 10833d969e3f..ff7cac602984 100644
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -110,6 +110,11 @@ struct mem_cgroup *mem_cgroup_from_task(struct task_struct *p)
110 struct mem_cgroup, css); 110 struct mem_cgroup, css);
111} 111}
112 112
113inline struct mem_cgroup *mm_cgroup(struct mm_struct *mm)
114{
115 return rcu_dereference(mm->mem_cgroup);
116}
117
113void mm_init_cgroup(struct mm_struct *mm, struct task_struct *p) 118void mm_init_cgroup(struct mm_struct *mm, struct task_struct *p)
114{ 119{
115 struct mem_cgroup *mem; 120 struct mem_cgroup *mem;