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/core/netprio_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/core/netprio_cgroup.c')
-rw-r--r-- | net/core/netprio_cgroup.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/core/netprio_cgroup.c b/net/core/netprio_cgroup.c index 79285a36035f..f0b6b0d572c1 100644 --- a/net/core/netprio_cgroup.c +++ b/net/core/netprio_cgroup.c | |||
@@ -108,7 +108,7 @@ static int write_update_netdev_table(struct net_device *dev) | |||
108 | return ret; | 108 | return ret; |
109 | } | 109 | } |
110 | 110 | ||
111 | static struct cgroup_subsys_state *cgrp_create(struct cgroup *cgrp) | 111 | static struct cgroup_subsys_state *cgrp_css_alloc(struct cgroup *cgrp) |
112 | { | 112 | { |
113 | struct cgroup_netprio_state *cs; | 113 | struct cgroup_netprio_state *cs; |
114 | int ret = -EINVAL; | 114 | int ret = -EINVAL; |
@@ -132,7 +132,7 @@ out: | |||
132 | return ERR_PTR(ret); | 132 | return ERR_PTR(ret); |
133 | } | 133 | } |
134 | 134 | ||
135 | static void cgrp_destroy(struct cgroup *cgrp) | 135 | static void cgrp_css_free(struct cgroup *cgrp) |
136 | { | 136 | { |
137 | struct cgroup_netprio_state *cs; | 137 | struct cgroup_netprio_state *cs; |
138 | struct net_device *dev; | 138 | struct net_device *dev; |
@@ -276,8 +276,8 @@ static struct cftype ss_files[] = { | |||
276 | 276 | ||
277 | struct cgroup_subsys net_prio_subsys = { | 277 | struct cgroup_subsys net_prio_subsys = { |
278 | .name = "net_prio", | 278 | .name = "net_prio", |
279 | .create = cgrp_create, | 279 | .css_alloc = cgrp_css_alloc, |
280 | .destroy = cgrp_destroy, | 280 | .css_free = cgrp_css_free, |
281 | .attach = net_prio_attach, | 281 | .attach = net_prio_attach, |
282 | .subsys_id = net_prio_subsys_id, | 282 | .subsys_id = net_prio_subsys_id, |
283 | .base_cftypes = ss_files, | 283 | .base_cftypes = ss_files, |