mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] kernel:sys: Fix typo issue
@ 2021-03-16 11:29 Xiaofeng Cao
  2021-03-16 19:04 ` Randy Dunlap
  0 siblings, 1 reply; 2+ messages in thread
From: Xiaofeng Cao @ 2021-03-16 11:29 UTC (permalink / raw)
  To: christian.brauner, akpm; +Cc: walken, tglx, linux-kernel, Xiaofeng Cao

From: Xiaofeng Cao <caoxiaofeng@yulong.com>

change 'infite'     to 'infinite'
change 'concurent'  to 'concurrent'
change 'memvers'    to 'members'
change 'decendants' to 'descendants'
change 'argumets'   to 'arguments'

Signed-off-by: Xiaofeng Cao <caoxiaofeng@yulong.com>
---
 kernel/sys.c | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/kernel/sys.c b/kernel/sys.c
index 2e2e3f378d97..ecc2f2efc31b 100644
--- a/kernel/sys.c
+++ b/kernel/sys.c
@@ -1584,7 +1584,7 @@ int do_prlimit(struct task_struct *tsk, unsigned int resource,
 
 	/*
 	 * RLIMIT_CPU handling. Arm the posix CPU timer if the limit is not
-	 * infite. In case of RLIM_INFINITY the posix CPU timer code
+	 * infinite. In case of RLIM_INFINITY the posix CPU timer code
 	 * ignores the rlimit.
 	 */
 	 if (!retval && new_rlim && resource == RLIMIT_CPU &&
@@ -2023,7 +2023,7 @@ static int prctl_set_mm_map(int opt, const void __user *addr, unsigned long data
 	}
 
 	/*
-	 * arg_lock protects concurent updates but we still need mmap_lock for
+	 * arg_lock protects concurrent updates but we still need mmap_lock for
 	 * read to exclude races with sys_brk.
 	 */
 	mmap_read_lock(mm);
@@ -2035,7 +2035,7 @@ static int prctl_set_mm_map(int opt, const void __user *addr, unsigned long data
 	 * output in procfs mostly, except
 	 *
 	 *  - @start_brk/@brk which are used in do_brk_flags but kernel lookups
-	 *    for VMAs when updating these memvers so anything wrong written
+	 *    for VMAs when updating these members so anything wrong written
 	 *    here cause kernel to swear at userspace program but won't lead
 	 *    to any problem in kernel itself
 	 */
@@ -2137,7 +2137,7 @@ static int prctl_set_mm(int opt, unsigned long addr,
 	error = -EINVAL;
 
 	/*
-	 * arg_lock protects concurent updates of arg boundaries, we need
+	 * arg_lock protects concurrent updates of arg boundaries, we need
 	 * mmap_lock for a) concurrent sys_brk, b) finding VMA for addr
 	 * validation.
 	 */
@@ -2204,7 +2204,7 @@ static int prctl_set_mm(int opt, unsigned long addr,
 	 * If command line arguments and environment
 	 * are placed somewhere else on stack, we can
 	 * set them up here, ARG_START/END to setup
-	 * command line argumets and ENV_START/END
+	 * command line arguments and ENV_START/END
 	 * for environment.
 	 */
 	case PR_SET_MM_START_STACK:
@@ -2252,8 +2252,8 @@ static int prctl_get_tid_address(struct task_struct *me, int __user * __user *ti
 static int propagate_has_child_subreaper(struct task_struct *p, void *data)
 {
 	/*
-	 * If task has has_child_subreaper - all its decendants
-	 * already have these flag too and new decendants will
+	 * If task has has_child_subreaper - all its descendants
+	 * already have these flag too and new descendants will
 	 * inherit it on fork, skip them.
 	 *
 	 * If we've found child_reaper - skip descendants in
-- 
2.25.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] kernel:sys: Fix typo issue
  2021-03-16 11:29 [PATCH] kernel:sys: Fix typo issue Xiaofeng Cao
@ 2021-03-16 19:04 ` Randy Dunlap
  0 siblings, 0 replies; 2+ messages in thread
From: Randy Dunlap @ 2021-03-16 19:04 UTC (permalink / raw)
  To: Xiaofeng Cao, christian.brauner, akpm
  Cc: walken, tglx, linux-kernel, Xiaofeng Cao

On 3/16/21 4:29 AM, Xiaofeng Cao wrote:
> From: Xiaofeng Cao <caoxiaofeng@yulong.com>
> 
> change 'infite'     to 'infinite'
> change 'concurent'  to 'concurrent'
> change 'memvers'    to 'members'
> change 'decendants' to 'descendants'
> change 'argumets'   to 'arguments'
> 
> Signed-off-by: Xiaofeng Cao <caoxiaofeng@yulong.com>
> ---
>  kernel/sys.c | 14 +++++++-------
>  1 file changed, 7 insertions(+), 7 deletions(-)
> 
> diff --git a/kernel/sys.c b/kernel/sys.c
> index 2e2e3f378d97..ecc2f2efc31b 100644
> --- a/kernel/sys.c
> +++ b/kernel/sys.c
> @@ -1584,7 +1584,7 @@ int do_prlimit(struct task_struct *tsk, unsigned int resource,
>  
>  	/*
>  	 * RLIMIT_CPU handling. Arm the posix CPU timer if the limit is not
> -	 * infite. In case of RLIM_INFINITY the posix CPU timer code
> +	 * infinite. In case of RLIM_INFINITY the posix CPU timer code
>  	 * ignores the rlimit.
>  	 */
>  	 if (!retval && new_rlim && resource == RLIMIT_CPU &&

It would be better to change "posix" to "POSIX" also.

Anyway:
Acked-by: Randy Dunlap <rdunlap@infradead.org>


thanks.
-- 
~Randy


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-03-16 19:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-16 11:29 [PATCH] kernel:sys: Fix typo issue Xiaofeng Cao
2021-03-16 19:04 ` Randy Dunlap

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®