cgroup: fix spelling mistakes

Fix some spelling mistakes in comments:
hierarhcy ==> hierarchy
automtically ==> automatically
overriden ==> overridden
In absense of .. or ==> In absence of .. and
assocaited ==> associated
taget ==> target
initate ==> initiate
succeded ==> succeeded
curremt ==> current
udpated ==> updated

Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
This commit is contained in:
Zhen Lei 2021-05-24 16:29:43 +08:00 committed by Tejun Heo
parent 45e1ba4083
commit 08b2b6fdf6
7 changed files with 12 additions and 12 deletions

View File

@ -232,7 +232,7 @@ struct css_set {
struct list_head task_iters; struct list_head task_iters;
/* /*
* On the default hierarhcy, ->subsys[ssid] may point to a css * On the default hierarchy, ->subsys[ssid] may point to a css
* attached to an ancestor instead of the cgroup this css_set is * attached to an ancestor instead of the cgroup this css_set is
* associated with. The following node is anchored at * associated with. The following node is anchored at
* ->subsys[ssid]->cgroup->e_csets[ssid] and provides a way to * ->subsys[ssid]->cgroup->e_csets[ssid] and provides a way to
@ -668,7 +668,7 @@ struct cgroup_subsys {
*/ */
bool threaded:1; bool threaded:1;
/* the following two fields are initialized automtically during boot */ /* the following two fields are initialized automatically during boot */
int id; int id;
const char *name; const char *name;
@ -757,7 +757,7 @@ static inline void cgroup_threadgroup_change_end(struct task_struct *tsk) {}
* sock_cgroup_data overloads (prioidx, classid) and the cgroup pointer. * sock_cgroup_data overloads (prioidx, classid) and the cgroup pointer.
* On boot, sock_cgroup_data records the cgroup that the sock was created * On boot, sock_cgroup_data records the cgroup that the sock was created
* in so that cgroup2 matches can be made; however, once either net_prio or * in so that cgroup2 matches can be made; however, once either net_prio or
* net_cls starts being used, the area is overriden to carry prioidx and/or * net_cls starts being used, the area is overridden to carry prioidx and/or
* classid. The two modes are distinguished by whether the lowest bit is * classid. The two modes are distinguished by whether the lowest bit is
* set. Clear bit indicates cgroup pointer while set bit prioidx and * set. Clear bit indicates cgroup pointer while set bit prioidx and
* classid. * classid.

View File

@ -32,7 +32,7 @@ struct kernel_clone_args;
#ifdef CONFIG_CGROUPS #ifdef CONFIG_CGROUPS
/* /*
* All weight knobs on the default hierarhcy should use the following min, * All weight knobs on the default hierarchy should use the following min,
* default and max values. The default value is the logarithmic center of * default and max values. The default value is the logarithmic center of
* MIN and MAX and allows 100x to be expressed in both directions. * MIN and MAX and allows 100x to be expressed in both directions.
*/ */

View File

@ -1001,7 +1001,7 @@ static int check_cgroupfs_options(struct fs_context *fc)
ctx->subsys_mask &= enabled; ctx->subsys_mask &= enabled;
/* /*
* In absense of 'none', 'name=' or subsystem name options, * In absence of 'none', 'name=' and subsystem name options,
* let's default to 'all'. * let's default to 'all'.
*/ */
if (!ctx->subsys_mask && !ctx->none && !ctx->name) if (!ctx->subsys_mask && !ctx->none && !ctx->name)

View File

@ -468,7 +468,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 * @ss: the subsystem of interest
* *
* Find and get @cgrp's css assocaited with @ss. If the css doesn't exist * Find and get @cgrp's css associated with @ss. If the css doesn't exist
* or is offline, %NULL is returned. * or is offline, %NULL is returned.
*/ */
static struct cgroup_subsys_state *cgroup_tryget_css(struct cgroup *cgrp, static struct cgroup_subsys_state *cgroup_tryget_css(struct cgroup *cgrp,
@ -1633,7 +1633,7 @@ static void cgroup_rm_file(struct cgroup *cgrp, const struct cftype *cft)
/** /**
* css_clear_dir - remove subsys files in a cgroup directory * css_clear_dir - remove subsys files in a cgroup directory
* @css: taget css * @css: target css
*/ */
static void css_clear_dir(struct cgroup_subsys_state *css) static void css_clear_dir(struct cgroup_subsys_state *css)
{ {
@ -5350,7 +5350,7 @@ out_unlock:
/* /*
* This is called when the refcnt of a css is confirmed to be killed. * This is called when the refcnt of a css is confirmed to be killed.
* css_tryget_online() is now guaranteed to fail. Tell the subsystem to * css_tryget_online() is now guaranteed to fail. Tell the subsystem to
* initate destruction and put the css ref from kill_css(). * initiate destruction and put the css ref from kill_css().
*/ */
static void css_killed_work_fn(struct work_struct *work) static void css_killed_work_fn(struct work_struct *work)
{ {
@ -6052,7 +6052,7 @@ out_revert:
* @kargs: the arguments passed to create the child process * @kargs: the arguments passed to create the child process
* *
* This calls the cancel_fork() callbacks if a fork failed *after* * This calls the cancel_fork() callbacks if a fork failed *after*
* cgroup_can_fork() succeded and cleans up references we took to * cgroup_can_fork() succeeded and cleans up references we took to
* prepare a new css_set for the child process in cgroup_can_fork(). * prepare a new css_set for the child process in cgroup_can_fork().
*/ */
void cgroup_cancel_fork(struct task_struct *child, void cgroup_cancel_fork(struct task_struct *child,

View File

@ -3376,7 +3376,7 @@ nodemask_t cpuset_mems_allowed(struct task_struct *tsk)
} }
/** /**
* cpuset_nodemask_valid_mems_allowed - check nodemask vs. curremt mems_allowed * cpuset_nodemask_valid_mems_allowed - check nodemask vs. current mems_allowed
* @nodemask: the nodemask to be checked * @nodemask: the nodemask to be checked
* *
* Are any of the nodes in the nodemask allowed in current->mems_allowed? * Are any of the nodes in the nodemask allowed in current->mems_allowed?

View File

@ -244,7 +244,7 @@ EXPORT_SYMBOL(rdmacg_uncharge);
* This function follows charging resource in hierarchical way. * This function follows charging resource in hierarchical way.
* It will fail if the charge would cause the new value to exceed the * It will fail if the charge would cause the new value to exceed the
* hierarchical limit. * hierarchical limit.
* Returns 0 if the charge succeded, otherwise -EAGAIN, -ENOMEM or -EINVAL. * Returns 0 if the charge succeeded, otherwise -EAGAIN, -ENOMEM or -EINVAL.
* Returns pointer to rdmacg for this resource when charging is successful. * Returns pointer to rdmacg for this resource when charging is successful.
* *
* Charger needs to account resources on two criteria. * Charger needs to account resources on two criteria.

View File

@ -75,7 +75,7 @@ void cgroup_rstat_updated(struct cgroup *cgrp, int cpu)
* @root: root of the tree to traversal * @root: root of the tree to traversal
* @cpu: target cpu * @cpu: target cpu
* *
* Walks the udpated rstat_cpu tree on @cpu from @root. %NULL @pos starts * Walks the updated rstat_cpu tree on @cpu from @root. %NULL @pos starts
* the traversal and %NULL return indicates the end. During traversal, * the traversal and %NULL return indicates the end. During traversal,
* each returned cgroup is unlinked from the tree. Must be called with the * each returned cgroup is unlinked from the tree. Must be called with the
* matching cgroup_rstat_cpu_lock held. * matching cgroup_rstat_cpu_lock held.