Commit 180d8cd9 authored by Committed by David S. Miller
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 <email@example.com> Reviewed-by: Hiroyouki Kamezawa <firstname.lastname@example.org> CC: David S. Miller <email@example.com> CC: Eric W. Biederman <firstname.lastname@example.org> CC: Eric Dumazet <email@example.com> Signed-off-by: David S. Miller <firstname.lastname@example.org>
Showing with 145 additions and 39 deletions