aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
Diffstat (limited to 'mm')
-rw-r--r--mm/memcontrol.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index 8e4be9cb2a6a..8ffec674c5ac 100644
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -2272,11 +2272,12 @@ free_out:
2272 return ERR_PTR(-ENOMEM); 2272 return ERR_PTR(-ENOMEM);
2273} 2273}
2274 2274
2275static void mem_cgroup_pre_destroy(struct cgroup_subsys *ss, 2275static int mem_cgroup_pre_destroy(struct cgroup_subsys *ss,
2276 struct cgroup *cont) 2276 struct cgroup *cont)
2277{ 2277{
2278 struct mem_cgroup *mem = mem_cgroup_from_cont(cont); 2278 struct mem_cgroup *mem = mem_cgroup_from_cont(cont);
2279 mem_cgroup_force_empty(mem, false); 2279
2280 return mem_cgroup_force_empty(mem, false);
2280} 2281}
2281 2282
2282static void mem_cgroup_destroy(struct cgroup_subsys *ss, 2283static void mem_cgroup_destroy(struct cgroup_subsys *ss,