diff options
author | Tejun Heo <tj@kernel.org> | 2012-11-05 12:16:59 -0500 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2012-11-05 12:16:59 -0500 |
commit | bcf6de1b9129531215d26dd9af8331e84973bc52 (patch) | |
tree | 0666760423e4579a50a7752568036a13e0cfa9d5 /mm/memcontrol.c | |
parent | 9d093cb10eb482adfba6ddc71a0969b78823ee8b (diff) |
cgroup: make ->pre_destroy() return void
All ->pre_destory() implementations return 0 now, which is the only
allowed return value. Make it return void.
Signed-off-by: Tejun Heo <tj@kernel.org>
Reviewed-by: Michal Hocko <mhocko@suse.cz>
Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Acked-by: Li Zefan <lizefan@huawei.com>
Cc: Balbir Singh <bsingharora@gmail.com>
Cc: Vivek Goyal <vgoyal@redhat.com>
Diffstat (limited to 'mm/memcontrol.c')
-rw-r--r-- | mm/memcontrol.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mm/memcontrol.c b/mm/memcontrol.c index 6678f991c6c6..a1811ce60e20 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c | |||
@@ -5002,12 +5002,11 @@ free_out: | |||
5002 | return ERR_PTR(error); | 5002 | return ERR_PTR(error); |
5003 | } | 5003 | } |
5004 | 5004 | ||
5005 | static int mem_cgroup_pre_destroy(struct cgroup *cont) | 5005 | static void mem_cgroup_pre_destroy(struct cgroup *cont) |
5006 | { | 5006 | { |
5007 | struct mem_cgroup *memcg = mem_cgroup_from_cont(cont); | 5007 | struct mem_cgroup *memcg = mem_cgroup_from_cont(cont); |
5008 | 5008 | ||
5009 | mem_cgroup_reparent_charges(memcg); | 5009 | mem_cgroup_reparent_charges(memcg); |
5010 | return 0; | ||
5011 | } | 5010 | } |
5012 | 5011 | ||
5013 | static void mem_cgroup_destroy(struct cgroup *cont) | 5012 | static void mem_cgroup_destroy(struct cgroup *cont) |