sock: only define socket limit if mem cgroup configured
Subsystems (3)
PATCH 1/1 sock: only define socket limit if mem cgroup configured
The mem cgroup socket limit is only used if the config option is enabled. Found with sparse
Signed-off-by Stephen Hemminger <[email protected]>
net/core/sock.c +2 -0
@@ -186,8 +186,10 @@ void mem_cgroup_sockets_destroy(struct mstatic struct lock_class_key af_family_keys[AF_MAX ];static struct lock_class_key af_family_slock_keys[AF_MAX ]; +#if defined(CONFIG_MEMCG_KMEM )struct static_key memcg_socket_limit_enabled;EXPORT_SYMBOL (memcg_socket_limit_enabled); +#endif /* * Make lock validator output more readable. (we pre-construct these
From: Stephen Hemminger <[email protected]>
Date: Fri, 22 Feb 2013 09:59:10 -0800
Quoted 4 lines
The mem cgroup socket limit is only used if the config option is enabled. Found with sparse
Signed-off-by Stephen Hemminger <[email protected]>
Applied.