diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2018-02-24 21:20:33 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-02-26 15:11:48 -0500 |
commit | 08009a760213cf6125af9453a51203f4ae108ba1 (patch) | |
tree | bcd9f2638df9b6d25f09eccc48b81ec1bee995a5 /net/socket.c | |
parent | cb31232a9c6e30e2fedbd92694b749f484d519d8 (diff) | |
download | op-kernel-dev-08009a760213cf6125af9453a51203f4ae108ba1.zip op-kernel-dev-08009a760213cf6125af9453a51203f4ae108ba1.tar.gz |
net: make kmem caches as __ro_after_init
All kmem caches aren't reallocated once set up.
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/socket.c')
-rw-r--r-- | net/socket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/socket.c b/net/socket.c index ab58e57..645d32b 100644 --- a/net/socket.c +++ b/net/socket.c @@ -233,7 +233,7 @@ static int move_addr_to_user(struct sockaddr_storage *kaddr, int klen, return __put_user(klen, ulen); } -static struct kmem_cache *sock_inode_cachep __read_mostly; +static struct kmem_cache *sock_inode_cachep __ro_after_init; static struct inode *sock_alloc_inode(struct super_block *sb) { |