diff options
| author | Johannes Weiner <[email protected]> | 2016-01-14 23:21:17 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2016-01-15 00:00:49 +0000 |
| commit | baac50bbc3cdfd184ebf586b1704edbfcee866df (patch) | |
| tree | b1b168157c38ef0533d2c8765bb3016d6a495cac /net/ipv6/tcp_ipv6.c | |
| parent | net: tcp_memcontrol: sanitize tcp memory accounting callbacks (diff) | |
| download | kernel-baac50bbc3cdfd184ebf586b1704edbfcee866df.tar.gz kernel-baac50bbc3cdfd184ebf586b1704edbfcee866df.zip | |
net: tcp_memcontrol: simplify linkage between socket and page counter
There won't be any separate counters for socket memory consumed by
protocols other than TCP in the future. Remove the indirection and link
sockets directly to their owning memory cgroup.
Signed-off-by: Johannes Weiner <[email protected]>
Reviewed-by: Vladimir Davydov <[email protected]>
Acked-by: David S. Miller <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/ipv6/tcp_ipv6.c')
| -rw-r--r-- | net/ipv6/tcp_ipv6.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c index db9f1c318afc..4ad8edb46f7c 100644 --- a/net/ipv6/tcp_ipv6.c +++ b/net/ipv6/tcp_ipv6.c @@ -1889,9 +1889,6 @@ struct proto tcpv6_prot = { .compat_setsockopt = compat_tcp_setsockopt, .compat_getsockopt = compat_tcp_getsockopt, #endif -#ifdef CONFIG_MEMCG_KMEM - .proto_cgroup = tcp_proto_cgroup, -#endif .clear_sk = tcp_v6_clear_sk, .diag_destroy = tcp_abort, }; |
