mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-06 22:42:10 +00:00
fs/proc: use __ro_after_init
/proc/self inode numbers, value of proc_inode_cache and st_nlink of /proc/$TGID are fixed constants. Link: http://lkml.kernel.org/r/20180103184707.GA31849@avx2 Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
53f63345d8
commit
efb1a57d90
4 changed files with 9 additions and 5 deletions
|
@ -5,6 +5,7 @@
|
|||
* Copyright (C) 1991, 1992 Linus Torvalds
|
||||
*/
|
||||
|
||||
#include <linux/cache.h>
|
||||
#include <linux/time.h>
|
||||
#include <linux/proc_fs.h>
|
||||
#include <linux/kernel.h>
|
||||
|
@ -52,7 +53,7 @@ static void proc_evict_inode(struct inode *inode)
|
|||
}
|
||||
}
|
||||
|
||||
static struct kmem_cache * proc_inode_cachep;
|
||||
static struct kmem_cache *proc_inode_cachep __ro_after_init;
|
||||
|
||||
static struct inode *proc_alloc_inode(struct super_block *sb)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue