summaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorGlauber Costa2011-12-11 22:47:02 +0100
committerDavid S. Miller2011-12-13 01:04:10 +0100
commit180d8cd942ce336b2c869d324855c40c5db478ad (patch)
tree2424d854345d81464d6030ef8090a8e22bd414b0 /mm
parentBasic kernel memory functionality for the Memory Controller (diff)
downloadkernel-qcow2-linux-180d8cd942ce336b2c869d324855c40c5db478ad.tar.gz
kernel-qcow2-linux-180d8cd942ce336b2c869d324855c40c5db478ad.tar.xz
kernel-qcow2-linux-180d8cd942ce336b2c869d324855c40c5db478ad.zip
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>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions