diff options
Diffstat (limited to 'mm/memcontrol.c')
-rw-r--r-- | mm/memcontrol.c | 5 |
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 | ||
2275 | static void mem_cgroup_pre_destroy(struct cgroup_subsys *ss, | 2275 | static 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 | ||
2282 | static void mem_cgroup_destroy(struct cgroup_subsys *ss, | 2283 | static void mem_cgroup_destroy(struct cgroup_subsys *ss, |