From: Glauber Costa Date: Sun, 11 Dec 2011 21:47:02 +0000 (+0000) Subject: foundations of per-cgroup memory pressure controlling. X-Git-Tag: v3.3-rc1~182^2~258 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=180d8cd942ce336b2c869d324855c40c5db478ad;p=pandora-kernel.git 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 Reviewed-by: Hiroyouki Kamezawa CC: David S. Miller CC: Eric W. Biederman CC: Eric Dumazet Signed-off-by: David S. Miller --- Reading git-diff-tree failed