mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-30 15:44:13 +08:00
cgroup: fix some comment typos
s/effctive/effective s/hierarhcy/hierarchy s/shoulid/should Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com> Signed-off-by: Tejun Heo <tj@kernel.org>
This commit is contained in:
parent
27cf3a16b2
commit
d0f702e648
@ -261,7 +261,7 @@ static struct cgroup_subsys_state *cgroup_css(struct cgroup *cgrp,
|
|||||||
* @cgrp: the cgroup of interest
|
* @cgrp: the cgroup of interest
|
||||||
* @ss: the subsystem of interest (%NULL returns @cgrp->self)
|
* @ss: the subsystem of interest (%NULL returns @cgrp->self)
|
||||||
*
|
*
|
||||||
* Similar to cgroup_css() but returns the effctive css, which is defined
|
* Similar to cgroup_css() but returns the effective css, which is defined
|
||||||
* as the matching css of the nearest ancestor including self which has @ss
|
* as the matching css of the nearest ancestor including self which has @ss
|
||||||
* enabled. If @ss is associated with the hierarchy @cgrp is on, this
|
* enabled. If @ss is associated with the hierarchy @cgrp is on, this
|
||||||
* function is guaranteed to return non-NULL css.
|
* function is guaranteed to return non-NULL css.
|
||||||
@ -882,7 +882,7 @@ static void cgroup_exit_root_id(struct cgroup_root *root)
|
|||||||
static void cgroup_free_root(struct cgroup_root *root)
|
static void cgroup_free_root(struct cgroup_root *root)
|
||||||
{
|
{
|
||||||
if (root) {
|
if (root) {
|
||||||
/* hierarhcy ID shoulid already have been released */
|
/* hierarchy ID should already have been released */
|
||||||
WARN_ON_ONCE(root->hierarchy_id);
|
WARN_ON_ONCE(root->hierarchy_id);
|
||||||
|
|
||||||
idr_destroy(&root->cgroup_idr);
|
idr_destroy(&root->cgroup_idr);
|
||||||
|
Loading…
Reference in New Issue
Block a user