Glauber Costa 180d8cd942 foundations of per-cgroup memory pressure controlling.
This patch replaces all uses of struct sock fields' memory_pressure,
memory_allocated, sockets_allocated, and sysctl_mem to acessor
macros. Those macros can either receive a socket argument, or a mem_cgroup
argument, depending on the context they live in.

Since we're only doing a macro wrapping here, no performance impact at all is
expected in the case where we don't have cgroups disabled.

Signed-off-by: Glauber Costa <glommer@parallels.com>
Reviewed-by: Hiroyouki Kamezawa <kamezawa.hiroyu@jp.fujitsu.com>
CC: David S. Miller <davem@davemloft.net>
CC: Eric W. Biederman <ebiederm@xmission.com>
CC: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2011-12-12 19:04:10 -05:00
..
2011-12-08 19:58:30 -05:00
2011-12-11 18:25:16 -05:00
2011-12-06 17:21:47 -05:00
2011-12-11 18:25:16 -05:00
2011-03-17 11:59:32 +11:00
2011-10-13 16:05:07 -04:00
2011-12-11 18:25:16 -05:00
2011-11-26 15:57:36 -05:00
2011-09-16 19:20:20 -04:00
2011-12-11 18:25:16 -05:00
2011-11-29 00:23:13 -05:00
2011-11-14 00:10:50 -05:00
2011-12-11 18:25:16 -05:00
2011-12-11 18:25:16 -05:00
2011-12-11 18:25:16 -05:00
2010-10-15 15:53:27 +02:00