Skip to content

Commit 0a2cafe

Browse files
kamalesh-babulalhtejun
authored andcommitted
cgroup/cpuset: Improve cpuset_css_alloc() description
Change the function argument in the description of cpuset_css_alloc() from 'struct cgroup' -> 'struct cgroup_subsys_state'. The change to the argument type was introduced by commit eb95419 ("cgroup: pass around cgroup_subsys_state instead of cgroup in subsystem methods"). Also, add more information to its description. Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com> Acked-by: Waiman Long <longman@redhat.com> Acked-by: Joel Savitz <jsavitz@redhat.com> Signed-off-by: Tejun Heo <tj@kernel.org>
1 parent 1e85591 commit 0a2cafe

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

kernel/cgroup/cpuset.c

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3072,11 +3072,15 @@ static struct cftype dfl_files[] = {
30723072
};
30733073

30743074

3075-
/*
3076-
* cpuset_css_alloc - allocate a cpuset css
3077-
* cgrp: control group that the new cpuset will be part of
3075+
/**
3076+
* cpuset_css_alloc - Allocate a cpuset css
3077+
* @parent_css: Parent css of the control group that the new cpuset will be
3078+
* part of
3079+
* Return: cpuset css on success, -ENOMEM on failure.
3080+
*
3081+
* Allocate and initialize a new cpuset css, for non-NULL @parent_css, return
3082+
* top cpuset css otherwise.
30783083
*/
3079-
30803084
static struct cgroup_subsys_state *
30813085
cpuset_css_alloc(struct cgroup_subsys_state *parent_css)
30823086
{

0 commit comments

Comments
 (0)