summaryrefslogtreecommitdiff
path: root/mm/mmu_context.c
diff options
context:
space:
mode:
authorMichal Hocko <mhocko@suse.cz>2012-10-09 03:33:10 +0400
committerLinus Torvalds <torvalds@linux-foundation.org>2012-10-09 11:22:54 +0400
commit4bd2c1ee4b439d926e437a4841e8145230df98c9 (patch)
treeb9bf448dda9bfb5d428928c7f26fd7c7aad30267 /mm/mmu_context.c
parent1939c557b5c3c0e800328e3589ae3d27fdfea29e (diff)
downloadlinux-4bd2c1ee4b439d926e437a4841e8145230df98c9.tar.xz
memcg: cleanup kmem tcp ifdefs
TCP kmem accounting is currently guarded by CONFIG_MEMCG_KMEM ifdefs but the code is not used if !CONFIG_INET so we should rather test for both. The same applies to net/sock.h, net/ip.h and net/tcp_memcontrol.h but let's keep those outside of any ifdefs because it is considered safer wrt. future maintainability. Tested with - CONFIG_INET && CONFIG_MEMCG_KMEM - !CONFIG_INET && CONFIG_MEMCG_KMEM - CONFIG_INET && !CONFIG_MEMCG_KMEM - !CONFIG_INET && !CONFIG_MEMCG_KMEM Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Michal Hocko <mhocko@suse.cz> Cc: Glauber Costa <glommer@parallels.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/mmu_context.c')
0 files changed, 0 insertions, 0 deletions