diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2022-12-30 12:36:02 +0300 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2023-02-03 09:50:02 +0300 |
commit | a61c01e8f4a5c80e90de80a7fb147101b20afd85 (patch) | |
tree | e8f73a2158872c8145f72fa1daa521bafc382652 /fs/proc/cmdline.c | |
parent | a3ea42ff8f3c977ac568f0530d2c13a639858764 (diff) | |
download | linux-a61c01e8f4a5c80e90de80a7fb147101b20afd85.tar.xz |
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 <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'fs/proc/cmdline.c')
-rw-r--r-- | fs/proc/cmdline.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/proc/cmdline.c b/fs/proc/cmdline.c index 91fe1597af7b..a6f76121955f 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; } |