aboutsummaryrefslogtreecommitdiff
path: root/net/socket.c
diff options
context:
space:
mode:
authorAlexey Dobriyan2018-02-24 21:20:33 +0300
committerDavid S. Miller2018-02-26 15:11:48 -0500
commit08009a760213cf6125af9453a51203f4ae108ba1 (patch)
treebcd9f2638df9b6d25f09eccc48b81ec1bee995a5 /net/socket.c
parentcb31232a9c6e30e2fedbd92694b749f484d519d8 (diff)
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/socket.c b/net/socket.c
index ab58e57c09ca..645d32b4872c 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)
{