diff options
author | Michal Hocko <[email protected]> | 2012-10-08 16:33:10 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2012-10-09 16:22:54 +0900 |
commit | 4bd2c1ee4b439d926e437a4841e8145230df98c9 (patch) | |
tree | b9bf448dda9bfb5d428928c7f26fd7c7aad30267 /drivers/scsi/mpt2sas/mpi/mpi2_init.h | |
parent | 1939c557b5c3c0e800328e3589ae3d27fdfea29e (diff) |
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 <[email protected]>
Signed-off-by: Michal Hocko <[email protected]>
Cc: Glauber Costa <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'drivers/scsi/mpt2sas/mpi/mpi2_init.h')
0 files changed, 0 insertions, 0 deletions