mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
net: make kmem caches as __ro_after_init
All kmem caches aren't reallocated once set up. Signed-off-by: Alexey Dobriyan <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
cb31232a9c
commit
08009a7602
6 changed files with 11 additions and 8 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue