Skip to content
Snippets Groups Projects
Commit cbda4eaf authored by stephen hemminger's avatar stephen hemminger Committed by David S. Miller
Browse files

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: default avatarStephen Hemminger <stephen@networkplumber.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4cfb0485
No related branches found
No related tags found
No related merge requests found
......@@ -186,8 +186,10 @@ void mem_cgroup_sockets_destroy(struct mem_cgroup *memcg)
static 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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment