net: tcp_memcontrol: simplify the per-memcg limit access
authorJohannes Weiner <hannes@cmpxchg.org>
Thu, 14 Jan 2016 23:21:11 +0000 (15:21 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 15 Jan 2016 00:00:49 +0000 (16:00 -0800)
commit80f23124f57c77915a7b4201d8dcba38a38b23f0
treed370c585d71dc17fc9b48034cdcda5b6e1b36b22
parentaf95d7df4059cfeab7e7c244f3564214aada7dad
net: tcp_memcontrol: simplify the per-memcg limit access

tcp_memcontrol replicates the global sysctl_mem limit array per cgroup,
but it only ever sets these entries to the value of the memory_allocated
page_counter limit.  Use the latter directly.

Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Reviewed-by: Vladimir Davydov <vdavydov@virtuozzo.com>
Acked-by: David S. Miller <davem@davemloft.net>
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