Lines Matching refs:hugetlb_cgroup
22 struct hugetlb_cgroup { struct
34 static struct hugetlb_cgroup *root_h_cgroup __read_mostly; argument
37 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()
73 struct hugetlb_cgroup *parent_h_cgroup = hugetlb_cgroup_from_css(parent_css); in hugetlb_cgroup_css_alloc()
74 struct hugetlb_cgroup *h_cgroup; in hugetlb_cgroup_css_alloc()
95 struct hugetlb_cgroup *h_cgroup; in hugetlb_cgroup_css_free()
109 static void hugetlb_cgroup_move_parent(int idx, struct hugetlb_cgroup *h_cg, in hugetlb_cgroup_move_parent()
114 struct hugetlb_cgroup *page_hcg; in hugetlb_cgroup_move_parent()
115 struct hugetlb_cgroup *parent = parent_hugetlb_cgroup(h_cg); in hugetlb_cgroup_move_parent()
147 struct hugetlb_cgroup *h_cg = hugetlb_cgroup_from_css(css); in hugetlb_cgroup_css_offline()
166 struct hugetlb_cgroup **ptr) in hugetlb_cgroup_charge_cgroup()
170 struct hugetlb_cgroup *h_cg = NULL; in hugetlb_cgroup_charge_cgroup()
198 struct hugetlb_cgroup *h_cg, in hugetlb_cgroup_commit_charge()
214 struct hugetlb_cgroup *h_cg; in hugetlb_cgroup_uncharge_page()
228 struct hugetlb_cgroup *h_cg) in hugetlb_cgroup_uncharge_cgroup()
251 struct hugetlb_cgroup *h_cg = hugetlb_cgroup_from_css(css); in hugetlb_cgroup_read_u64()
276 struct hugetlb_cgroup *h_cg = hugetlb_cgroup_from_css(of_css(of)); in hugetlb_cgroup_write()
306 struct hugetlb_cgroup *h_cg = hugetlb_cgroup_from_css(of_css(of)); in hugetlb_cgroup_reset()
400 struct hugetlb_cgroup *h_cg; in hugetlb_cgroup_migrate()