diff options
author | Tejun Heo <tj@kernel.org> | 2012-11-19 11:13:38 -0500 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2012-11-19 11:13:38 -0500 |
commit | 92fb97487a7e41b222c1417cabd1d1ab7cc3a48c (patch) | |
tree | c220c622b9ac9b16535535d448e9cd29be72c77e /net/sched/cls_cgroup.c | |
parent | b1929db42f8a649d9a9e397119f628c27fd4021f (diff) |
cgroup: rename ->create/post_create/pre_destroy/destroy() to ->css_alloc/online/offline/free()
Rename cgroup_subsys css lifetime related callbacks to better describe
what their roles are. Also, update documentation.
Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Li Zefan <lizefan@huawei.com>
Diffstat (limited to 'net/sched/cls_cgroup.c')
-rw-r--r-- | net/sched/cls_cgroup.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/sched/cls_cgroup.c b/net/sched/cls_cgroup.c index 2ecde225ae60..8cdc18e075fb 100644 --- a/net/sched/cls_cgroup.c +++ b/net/sched/cls_cgroup.c | |||
@@ -34,7 +34,7 @@ static inline struct cgroup_cls_state *task_cls_state(struct task_struct *p) | |||
34 | struct cgroup_cls_state, css); | 34 | struct cgroup_cls_state, css); |
35 | } | 35 | } |
36 | 36 | ||
37 | static struct cgroup_subsys_state *cgrp_create(struct cgroup *cgrp) | 37 | static struct cgroup_subsys_state *cgrp_css_alloc(struct cgroup *cgrp) |
38 | { | 38 | { |
39 | struct cgroup_cls_state *cs; | 39 | struct cgroup_cls_state *cs; |
40 | 40 | ||
@@ -48,7 +48,7 @@ static struct cgroup_subsys_state *cgrp_create(struct cgroup *cgrp) | |||
48 | return &cs->css; | 48 | return &cs->css; |
49 | } | 49 | } |
50 | 50 | ||
51 | static void cgrp_destroy(struct cgroup *cgrp) | 51 | static void cgrp_css_free(struct cgroup *cgrp) |
52 | { | 52 | { |
53 | kfree(cgrp_cls_state(cgrp)); | 53 | kfree(cgrp_cls_state(cgrp)); |
54 | } | 54 | } |
@@ -75,8 +75,8 @@ static struct cftype ss_files[] = { | |||
75 | 75 | ||
76 | struct cgroup_subsys net_cls_subsys = { | 76 | struct cgroup_subsys net_cls_subsys = { |
77 | .name = "net_cls", | 77 | .name = "net_cls", |
78 | .create = cgrp_create, | 78 | .css_alloc = cgrp_css_alloc, |
79 | .destroy = cgrp_destroy, | 79 | .css_free = cgrp_css_free, |
80 | .subsys_id = net_cls_subsys_id, | 80 | .subsys_id = net_cls_subsys_id, |
81 | .base_cftypes = ss_files, | 81 | .base_cftypes = ss_files, |
82 | .module = THIS_MODULE, | 82 | .module = THIS_MODULE, |