From: Alexey Dobriyan Date: Fri, 30 Dec 2022 09:36:02 +0000 (+0300) Subject: proc: mark /proc/cmdline as permanent X-Git-Tag: v6.3-rc1~112^2~42 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a61c01e8f4a5c80e90de80a7fb147101b20afd85;p=thirdparty%2Flinux.git proc: mark /proc/cmdline as permanent /proc/cmdline is never removed, mark is as permanent for slightly faster open and close. Link: https://lkml.kernel.org/r/Y66xAveh2yUsP7m9@p183 Signed-off-by: Alexey Dobriyan Signed-off-by: Andrew Morton --- diff --git a/fs/proc/cmdline.c b/fs/proc/cmdline.c index 91fe1597af7b4..a6f76121955f6 100644 --- a/fs/proc/cmdline.c +++ b/fs/proc/cmdline.c @@ -17,6 +17,7 @@ static int __init proc_cmdline_init(void) struct proc_dir_entry *pde; pde = proc_create_single("cmdline", 0, NULL, cmdline_proc_show); + pde_make_permanent(pde); pde->size = saved_command_line_len + 1; return 0; }