Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

pid: pid_ns_ctl_handler: remove useless comment

commit 95846ecf9dac("pid: replace pid bitmap implementation with IDR API")
removes 'last_pid' element, and use the idr_get_cursor-idr_set_cursor pair
to set the value of idr, so useless comments should be removed.

Link: https://lkml.kernel.org/r/tencent_157A2A1CAF19A3F5885F0687426159A19708@qq.com
Signed-off-by: Rong Tao <rongtao@cestc.cn>
Cc: Aleksa Sarai <cyphar@cyphar.com>
Cc: Christian Brauner <brauner@kernel.org>
Cc: Frederic Weisbecker <frederic@kernel.org>
Cc: Jeff Xu <jeffxu@google.com>
Cc: Kees Cook <keescook@chromium.org>
Cc: Luis Chamberlain <mcgrof@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Rong Tao and committed by
Andrew Morton
2d57792a 5e57418a

-6
-6
kernel/pid_namespace.c
··· 286 286 if (write && !checkpoint_restore_ns_capable(pid_ns->user_ns)) 287 287 return -EPERM; 288 288 289 - /* 290 - * Writing directly to ns' last_pid field is OK, since this field 291 - * is volatile in a living namespace anyway and a code writing to 292 - * it should synchronize its usage with external means. 293 - */ 294 - 295 289 next = idr_get_cursor(&pid_ns->idr) - 1; 296 290 297 291 tmp.data = &next;