diff options
Diffstat (limited to 'net')
| -rw-r--r-- | net/ipv4/tcp_memcontrol.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/net/ipv4/tcp_memcontrol.c b/net/ipv4/tcp_memcontrol.c index d07579ada001..6759e0d6bba1 100644 --- a/net/ipv4/tcp_memcontrol.c +++ b/net/ipv4/tcp_memcontrol.c | |||
| @@ -32,7 +32,6 @@ int tcp_init_cgroup(struct mem_cgroup *memcg, struct cgroup_subsys *ss) | |||
| 32 | counter_parent = &parent_cg->memory_allocated; | 32 | counter_parent = &parent_cg->memory_allocated; |
| 33 | 33 | ||
| 34 | page_counter_init(&cg_proto->memory_allocated, counter_parent); | 34 | page_counter_init(&cg_proto->memory_allocated, counter_parent); |
| 35 | percpu_counter_init(&cg_proto->sockets_allocated, 0, GFP_KERNEL); | ||
| 36 | 35 | ||
| 37 | return 0; | 36 | return 0; |
| 38 | } | 37 | } |
| @@ -46,8 +45,6 @@ void tcp_destroy_cgroup(struct mem_cgroup *memcg) | |||
| 46 | if (!cg_proto) | 45 | if (!cg_proto) |
| 47 | return; | 46 | return; |
| 48 | 47 | ||
| 49 | percpu_counter_destroy(&cg_proto->sockets_allocated); | ||
| 50 | |||
| 51 | if (cg_proto->active) | 48 | if (cg_proto->active) |
| 52 | static_key_slow_dec(&memcg_socket_limit_enabled); | 49 | static_key_slow_dec(&memcg_socket_limit_enabled); |
| 53 | 50 | ||
