proc: mark more files as permanent
authorAlexey Dobriyan <adobriyan@gmail.com>
Tue, 20 Sep 2022 17:35:23 +0000 (20:35 +0300)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 3 Oct 2022 21:21:45 +0000 (14:21 -0700)
commitef1d61781bc6708ccc4a21262cc80a7dad952e04
tree8718e18c0d48dcd197f78ab1924ac7d21cab0ac5
parentda6f79164e98de4ab3f2fdeea4875207fe282014
proc: mark more files as permanent

Mark
/proc/devices
/proc/kpagecount
/proc/kpageflags
/proc/kpagecgroup
/proc/loadavg
/proc/meminfo
/proc/softirqs
/proc/uptime
/proc/version

as permanent /proc entries, saving alloc/free and some list/spinlock ops
per use.

These files are never removed by the kernel so it is OK to mark them.

Link: https://lkml.kernel.org/r/Yyn527DzDMa+r0Yj@localhost.localdomain
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/proc/devices.c
fs/proc/internal.h
fs/proc/loadavg.c
fs/proc/meminfo.c
fs/proc/page.c
fs/proc/softirqs.c
fs/proc/uptime.c
fs/proc/version.c