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 /kernel/cgroup.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 'kernel/cgroup.c')
-rw-r--r-- | kernel/cgroup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/cgroup.c b/kernel/cgroup.c index c5f6fb28dd0e..83cd7d041c62 100644 --- a/kernel/cgroup.c +++ b/kernel/cgroup.c | |||
@@ -4054,7 +4054,7 @@ static int cgroup_rmdir(struct inode *unused_dir, struct dentry *dentry) | |||
4054 | mutex_unlock(&cgroup_mutex); | 4054 | mutex_unlock(&cgroup_mutex); |
4055 | for_each_subsys(cgrp->root, ss) | 4055 | for_each_subsys(cgrp->root, ss) |
4056 | if (ss->pre_destroy) | 4056 | if (ss->pre_destroy) |
4057 | WARN_ON_ONCE(ss->pre_destroy(cgrp)); | 4057 | ss->pre_destroy(cgrp); |
4058 | mutex_lock(&cgroup_mutex); | 4058 | mutex_lock(&cgroup_mutex); |
4059 | 4059 | ||
4060 | /* | 4060 | /* |