aboutsummaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorJohannes Weiner <hannes@cmpxchg.org>2014-12-10 18:42:34 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2014-12-10 20:41:04 -0500
commit71f87bee38edddb21d97895fa938744cf3f477bb (patch)
tree036178cbc751f0c98c4a25eb1742ef4ec6d3c580 /init
parent3e32cb2e0a12b6915056ff04601cf1bb9b44f967 (diff)
mm: hugetlb_cgroup: convert to lockless page counters
Abandon the spinlock-protected byte counters in favor of the unlocked page counters in the hugetlb controller as well. Signed-off-by: Johannes Weiner <hannes@cmpxchg.org> Reviewed-by: Vladimir Davydov <vdavydov@parallels.com> Acked-by: Michal Hocko <mhocko@suse.cz> Cc: Tejun Heo <tj@kernel.org> Cc: David Rientjes <rientjes@google.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/Kconfig3
1 files changed, 2 insertions, 1 deletions
diff --git a/init/Kconfig b/init/Kconfig
index fd9e88791ba4..a60d1442d1df 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -1051,7 +1051,8 @@ config MEMCG_KMEM
1051 1051
1052config CGROUP_HUGETLB 1052config CGROUP_HUGETLB
1053 bool "HugeTLB Resource Controller for Control Groups" 1053 bool "HugeTLB Resource Controller for Control Groups"
1054 depends on RESOURCE_COUNTERS && HUGETLB_PAGE 1054 depends on HUGETLB_PAGE
1055 select PAGE_COUNTER
1055 default n 1056 default n
1056 help 1057 help
1057 Provides a cgroup Resource Controller for HugeTLB pages. 1058 Provides a cgroup Resource Controller for HugeTLB pages.