aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/cpuset.c
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2012-11-19 11:13:38 -0500
committerTejun Heo <tj@kernel.org>2012-11-19 11:13:38 -0500
commit92fb97487a7e41b222c1417cabd1d1ab7cc3a48c (patch)
treec220c622b9ac9b16535535d448e9cd29be72c77e /kernel/cpuset.c
parentb1929db42f8a649d9a9e397119f628c27fd4021f (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 'kernel/cpuset.c')
-rw-r--r--kernel/cpuset.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/kernel/cpuset.c b/kernel/cpuset.c
index f33c7153b6d7..06931337c4e5 100644
--- a/kernel/cpuset.c
+++ b/kernel/cpuset.c
@@ -1821,11 +1821,11 @@ static void cpuset_post_clone(struct cgroup *cgroup)
1821} 1821}
1822 1822
1823/* 1823/*
1824 * cpuset_create - create a cpuset 1824 * cpuset_css_alloc - allocate a cpuset css
1825 * cont: control group that the new cpuset will be part of 1825 * cont: control group that the new cpuset will be part of
1826 */ 1826 */
1827 1827
1828static struct cgroup_subsys_state *cpuset_create(struct cgroup *cont) 1828static struct cgroup_subsys_state *cpuset_css_alloc(struct cgroup *cont)
1829{ 1829{
1830 struct cpuset *cs; 1830 struct cpuset *cs;
1831 struct cpuset *parent; 1831 struct cpuset *parent;
@@ -1864,7 +1864,7 @@ static struct cgroup_subsys_state *cpuset_create(struct cgroup *cont)
1864 * will call async_rebuild_sched_domains(). 1864 * will call async_rebuild_sched_domains().
1865 */ 1865 */
1866 1866
1867static void cpuset_destroy(struct cgroup *cont) 1867static void cpuset_css_free(struct cgroup *cont)
1868{ 1868{
1869 struct cpuset *cs = cgroup_cs(cont); 1869 struct cpuset *cs = cgroup_cs(cont);
1870 1870
@@ -1878,8 +1878,8 @@ static void cpuset_destroy(struct cgroup *cont)
1878 1878
1879struct cgroup_subsys cpuset_subsys = { 1879struct cgroup_subsys cpuset_subsys = {
1880 .name = "cpuset", 1880 .name = "cpuset",
1881 .create = cpuset_create, 1881 .css_alloc = cpuset_css_alloc,
1882 .destroy = cpuset_destroy, 1882 .css_free = cpuset_css_free,
1883 .can_attach = cpuset_can_attach, 1883 .can_attach = cpuset_can_attach,
1884 .attach = cpuset_attach, 1884 .attach = cpuset_attach,
1885 .post_clone = cpuset_post_clone, 1885 .post_clone = cpuset_post_clone,