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 /block | |
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 'block')
-rw-r--r-- | block/blk-cgroup.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/block/blk-cgroup.c b/block/blk-cgroup.c index f3b44a65fc7a..a7816f3d0059 100644 --- a/block/blk-cgroup.c +++ b/block/blk-cgroup.c | |||
@@ -600,7 +600,7 @@ struct cftype blkcg_files[] = { | |||
600 | * | 600 | * |
601 | * This is the blkcg counterpart of ioc_release_fn(). | 601 | * This is the blkcg counterpart of ioc_release_fn(). |
602 | */ | 602 | */ |
603 | static int blkcg_pre_destroy(struct cgroup *cgroup) | 603 | static void blkcg_pre_destroy(struct cgroup *cgroup) |
604 | { | 604 | { |
605 | struct blkcg *blkcg = cgroup_to_blkcg(cgroup); | 605 | struct blkcg *blkcg = cgroup_to_blkcg(cgroup); |
606 | 606 | ||
@@ -622,7 +622,6 @@ static int blkcg_pre_destroy(struct cgroup *cgroup) | |||
622 | } | 622 | } |
623 | 623 | ||
624 | spin_unlock_irq(&blkcg->lock); | 624 | spin_unlock_irq(&blkcg->lock); |
625 | return 0; | ||
626 | } | 625 | } |
627 | 626 | ||
628 | static void blkcg_destroy(struct cgroup *cgroup) | 627 | static void blkcg_destroy(struct cgroup *cgroup) |