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 23:11:48 +0300 |
commit | 08009a760213cf6125af9453a51203f4ae108ba1 (patch) | |
tree | bcd9f2638df9b6d25f09eccc48b81ec1bee995a5 /net/ipv4/inetpeer.c | |
parent | cb31232a9c6e30e2fedbd92694b749f484d519d8 (diff) | |
download | linux-08009a760213cf6125af9453a51203f4ae108ba1.tar.xz |
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/ipv4/inetpeer.c')
-rw-r--r-- | net/ipv4/inetpeer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv4/inetpeer.c b/net/ipv4/inetpeer.c index 914d56928578..1f04bd91fc2e 100644 --- a/net/ipv4/inetpeer.c +++ b/net/ipv4/inetpeer.c @@ -6,6 +6,7 @@ * Authors: Andrey V. Savochkin <saw@msu.ru> */ +#include <linux/cache.h> #include <linux/module.h> #include <linux/types.h> #include <linux/slab.h> @@ -51,7 +52,7 @@ * daddr: unchangeable */ -static struct kmem_cache *peer_cachep __read_mostly; +static struct kmem_cache *peer_cachep __ro_after_init; void inet_peer_base_init(struct inet_peer_base *bp) { |