Skip to content

Commit a8ca6b1

Browse files
CaoXiaofengGHtorvalds
authored andcommitted
kernel/fork.c: fix typos
change 'ancestoral' to 'ancestral' change 'reuseable' to 'reusable' delete 'do' grammatically Link: https://lkml.kernel.org/r/20210317082031.11692-1-caoxiaofeng@yulong.com Signed-off-by: Xiaofeng Cao <caoxiaofeng@yulong.com> Reviewed-by: Christian Brauner <christian.brauner@ubuntu.com> Cc: Jens Axboe <axboe@kernel.dk> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent a689539 commit a8ca6b1

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎kernel/fork.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1145,7 +1145,7 @@ void mmput_async(struct mm_struct *mm)
11451145
* invocations: in mmput() nobody alive left, in execve task is single
11461146
* threaded. sys_prctl(PR_SET_MM_MAP/EXE_FILE) also needs to set the
11471147
* mm->exe_file, but does so without using set_mm_exe_file() in order
1148-
* to do avoid the need for any locks.
1148+
* to avoid the need for any locks.
11491149
*/
11501150
void set_mm_exe_file(struct mm_struct *mm, struct file *new_exe_file)
11511151
{
@@ -1736,7 +1736,7 @@ static int pidfd_release(struct inode *inode, struct file *file)
17361736
* /proc/<pid>/status where Pid and NSpid are always shown relative to
17371737
* the pid namespace of the procfs instance. The difference becomes
17381738
* obvious when sending around a pidfd between pid namespaces from a
1739-
* different branch of the tree, i.e. where no ancestoral relation is
1739+
* different branch of the tree, i.e. where no ancestral relation is
17401740
* present between the pid namespaces:
17411741
* - create two new pid namespaces ns1 and ns2 in the initial pid
17421742
* namespace (also take care to create new mount namespaces in the
@@ -2728,8 +2728,8 @@ static bool clone3_args_valid(struct kernel_clone_args *kargs)
27282728
return false;
27292729

27302730
/*
2731-
* - make the CLONE_DETACHED bit reuseable for clone3
2732-
* - make the CSIGNAL bits reuseable for clone3
2731+
* - make the CLONE_DETACHED bit reusable for clone3
2732+
* - make the CSIGNAL bits reusable for clone3
27332733
*/
27342734
if (kargs->flags & (CLONE_DETACHED | CSIGNAL))
27352735
return false;

0 commit comments

Comments
 (0)