]> git.baikalelectronics.ru Git - kernel.git/commit
net: tcp_memcontrol: remove dead per-memcg count of allocated sockets
authorJohannes Weiner <hannes@cmpxchg.org>
Thu, 14 Jan 2016 23:21:08 +0000 (15:21 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 15 Jan 2016 00:00:49 +0000 (16:00 -0800)
commit9c68e7c5162c67f3342b594373a8ebd5cdf27a16
tree137a733624782b600d61c0f2d995182f0c8d7dfa
parent815683a15da2a6d23c330437dc7687ee8504591a
net: tcp_memcontrol: remove dead per-memcg count of allocated sockets

The number of allocated sockets is used for calculations in the soft
limit phase, where packets are accepted but the socket is under memory
pressure.
 Since there is no soft limit phase in tcp_memcontrol, and memory
pressure is only entered when packets are already dropped, this is
actually dead code.  Remove it.

As this is the last user of parent_cg_proto(), remove that too.

Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Acked-by: David S. Miller <davem@davemloft.net>
Reviewed-by: Vladimir Davydov <vdavydov@virtuozzo.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/memcontrol.h
include/net/sock.h
net/ipv4/tcp_memcontrol.c