diff options
| author | Johannes Weiner <[email protected]> | 2016-10-08 00:00:58 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2016-10-08 01:46:29 +0000 |
| commit | 2d75807383459c04d457bf2d295fa6ad858507d2 (patch) | |
| tree | 66463e88f69356ec92d59d1c8416b076181970e6 /net/ipv4/tcp_ipv4.c | |
| parent | mm: move phys_mem_access_prot_allowed() declaration to pgtable.h (diff) | |
| download | kernel-2d75807383459c04d457bf2d295fa6ad858507d2.tar.gz kernel-2d75807383459c04d457bf2d295fa6ad858507d2.zip | |
mm: memcontrol: consolidate cgroup socket tracking
The cgroup core and the memory controller need to track socket ownership
for different purposes, but the tracking sites being entirely different
is kind of ugly.
Be a better citizen and rename the memory controller callbacks to match
the cgroup core callbacks, then move them to the same place.
[[email protected]: coding-style fixes]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Johannes Weiner <[email protected]>
Acked-by: Tejun Heo <[email protected]>
Cc: "David S. Miller" <[email protected]>
Cc: Michal Hocko <[email protected]>
Cc: Vladimir Davydov <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/ipv4/tcp_ipv4.c')
| -rw-r--r-- | net/ipv4/tcp_ipv4.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c index 7ac37c314312..bd5e8d10893f 100644 --- a/net/ipv4/tcp_ipv4.c +++ b/net/ipv4/tcp_ipv4.c @@ -1871,9 +1871,6 @@ void tcp_v4_destroy_sock(struct sock *sk) local_bh_disable(); sk_sockets_allocated_dec(sk); local_bh_enable(); - - if (mem_cgroup_sockets_enabled && sk->sk_memcg) - sock_release_memcg(sk); } EXPORT_SYMBOL(tcp_v4_destroy_sock); |
