diff options
author | Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> | 2012-07-31 19:42:24 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-07-31 21:42:41 -0400 |
commit | abb8206cb07734d0b7bf033c715995d6371a94c3 (patch) | |
tree | a27a55420bd6fad941c559bb80176f10931deb60 /include/linux/hugetlb.h | |
parent | da1def55919f4852c4759249a78d63a0c5d2d8f9 (diff) |
hugetlb/cgroup: add hugetlb cgroup control files
Add the control files for hugetlb controller
[akpm@linux-foundation.org: s/CONFIG_CGROUP_HUGETLB_RES_CTLR/CONFIG_MEMCG_HUGETLB/g]
[akpm@linux-foundation.org: s/CONFIG_MEMCG_HUGETLB/CONFIG_CGROUP_HUGETLB/]
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Cc: David Rientjes <rientjes@google.com>
Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Hillf Danton <dhillf@gmail.com>
Reviewed-by: Michal Hocko <mhocko@suse.cz>
Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/hugetlb.h')
-rw-r--r-- | include/linux/hugetlb.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/hugetlb.h b/include/linux/hugetlb.h index 3d677dd41898..f9db20bfa9fc 100644 --- a/include/linux/hugetlb.h +++ b/include/linux/hugetlb.h | |||
@@ -4,6 +4,7 @@ | |||
4 | #include <linux/mm_types.h> | 4 | #include <linux/mm_types.h> |
5 | #include <linux/fs.h> | 5 | #include <linux/fs.h> |
6 | #include <linux/hugetlb_inline.h> | 6 | #include <linux/hugetlb_inline.h> |
7 | #include <linux/cgroup.h> | ||
7 | 8 | ||
8 | struct ctl_table; | 9 | struct ctl_table; |
9 | struct user_struct; | 10 | struct user_struct; |
@@ -221,6 +222,10 @@ struct hstate { | |||
221 | unsigned int nr_huge_pages_node[MAX_NUMNODES]; | 222 | unsigned int nr_huge_pages_node[MAX_NUMNODES]; |
222 | unsigned int free_huge_pages_node[MAX_NUMNODES]; | 223 | unsigned int free_huge_pages_node[MAX_NUMNODES]; |
223 | unsigned int surplus_huge_pages_node[MAX_NUMNODES]; | 224 | unsigned int surplus_huge_pages_node[MAX_NUMNODES]; |
225 | #ifdef CONFIG_CGROUP_HUGETLB | ||
226 | /* cgroup control files */ | ||
227 | struct cftype cgroup_files[5]; | ||
228 | #endif | ||
224 | char name[HSTATE_NAME_LEN]; | 229 | char name[HSTATE_NAME_LEN]; |
225 | }; | 230 | }; |
226 | 231 | ||