diff options
author | Johannes Weiner <hannes@cmpxchg.org> | 2016-01-20 18:02:47 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-01-20 20:09:18 -0500 |
commit | d886f4e483ce63a3304adc9eda87031b93341c28 (patch) | |
tree | 2a638984e7b055680ea4d93e2897659954fcd3be /init | |
parent | d55f90bfab40e3b5db323711d28186ff09461692 (diff) |
mm: memcontrol: rein in the CONFIG space madness
What CONFIG_INET and CONFIG_LEGACY_KMEM guard inside the memory
controller code is insignificant, having these conditionals is not
worth the complication and fragility that comes with them.
[akpm@linux-foundation.org: rework mem_cgroup_css_free() statement ordering]
Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Cc: Michal Hocko <mhocko@suse.cz>
Acked-by: Vladimir Davydov <vdavydov@virtuozzo.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'init')
-rw-r--r-- | init/Kconfig | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/init/Kconfig b/init/Kconfig index a0a15cec8daf..22320804fbaf 100644 --- a/init/Kconfig +++ b/init/Kconfig | |||
@@ -964,20 +964,6 @@ config MEMCG_SWAP_ENABLED | |||
964 | For those who want to have the feature enabled by default should | 964 | For those who want to have the feature enabled by default should |
965 | select this option (if, for some reason, they need to disable it | 965 | select this option (if, for some reason, they need to disable it |
966 | then swapaccount=0 does the trick). | 966 | then swapaccount=0 does the trick). |
967 | config MEMCG_LEGACY_KMEM | ||
968 | bool | ||
969 | config MEMCG_KMEM | ||
970 | bool "Legacy Memory Resource Controller Kernel Memory accounting" | ||
971 | depends on MEMCG | ||
972 | depends on SLUB || SLAB | ||
973 | select MEMCG_LEGACY_KMEM | ||
974 | help | ||
975 | The Kernel Memory extension for Memory Resource Controller can limit | ||
976 | the amount of memory used by kernel objects in the system. Those are | ||
977 | fundamentally different from the entities handled by the standard | ||
978 | Memory Controller, which are page-based, and can be swapped. Users of | ||
979 | the kmem extension can use it to guarantee that no group of processes | ||
980 | will ever exhaust kernel resources alone. | ||
981 | 967 | ||
982 | config BLK_CGROUP | 968 | config BLK_CGROUP |
983 | bool "IO controller" | 969 | bool "IO controller" |
@@ -1190,10 +1176,9 @@ config USER_NS | |||
1190 | to provide different user info for different servers. | 1176 | to provide different user info for different servers. |
1191 | 1177 | ||
1192 | When user namespaces are enabled in the kernel it is | 1178 | When user namespaces are enabled in the kernel it is |
1193 | recommended that the MEMCG and MEMCG_KMEM options also be | 1179 | recommended that the MEMCG option also be enabled and that |
1194 | enabled and that user-space use the memory control groups to | 1180 | user-space use the memory control groups to limit the amount |
1195 | limit the amount of memory a memory unprivileged users can | 1181 | of memory a memory unprivileged users can use. |
1196 | use. | ||
1197 | 1182 | ||
1198 | If unsure, say N. | 1183 | If unsure, say N. |
1199 | 1184 | ||