Searched refs:hugetlb_cgroup (Results 1 – 4 of 4) sorted by relevance
20 struct hugetlb_cgroup;29 static inline struct hugetlb_cgroup *hugetlb_cgroup_from_page(struct page *page) in hugetlb_cgroup_from_page()35 return (struct hugetlb_cgroup *)page[2].private; in hugetlb_cgroup_from_page()39 int set_hugetlb_cgroup(struct page *page, struct hugetlb_cgroup *h_cg) in set_hugetlb_cgroup()55 struct hugetlb_cgroup **ptr);57 struct hugetlb_cgroup *h_cg,62 struct hugetlb_cgroup *h_cg);68 static inline struct hugetlb_cgroup *hugetlb_cgroup_from_page(struct page *page) in hugetlb_cgroup_from_page()74 int set_hugetlb_cgroup(struct page *page, struct hugetlb_cgroup *h_cg) in set_hugetlb_cgroup()86 struct hugetlb_cgroup **ptr) in hugetlb_cgroup_charge_cgroup()[all …]
22 struct hugetlb_cgroup { struct34 static struct hugetlb_cgroup *root_h_cgroup __read_mostly; argument37 struct hugetlb_cgroup *hugetlb_cgroup_from_css(struct cgroup_subsys_state *s) in hugetlb_cgroup_from_css()39 return s ? container_of(s, struct hugetlb_cgroup, css) : NULL; in hugetlb_cgroup_from_css()43 struct hugetlb_cgroup *hugetlb_cgroup_from_task(struct task_struct *task) in hugetlb_cgroup_from_task()48 static inline bool hugetlb_cgroup_is_root(struct hugetlb_cgroup *h_cg) in hugetlb_cgroup_is_root()53 static inline struct hugetlb_cgroup *54 parent_hugetlb_cgroup(struct hugetlb_cgroup *h_cg) in parent_hugetlb_cgroup()59 static inline bool hugetlb_cgroup_have_usage(struct hugetlb_cgroup *h_cg) in hugetlb_cgroup_have_usage()70 static void hugetlb_cgroup_init(struct hugetlb_cgroup *h_cgroup, in hugetlb_cgroup_init()[all …]
81 obj-$(CONFIG_CGROUP_HUGETLB) += hugetlb_cgroup.o
1999 struct hugetlb_cgroup *h_cg; in alloc_huge_page()