Lines Matching refs:hugetlb_cgroup
31 container_of(counter, struct hugetlb_cgroup, hugepage[idx])
33 static struct hugetlb_cgroup *root_h_cgroup __read_mostly;
36 __hugetlb_cgroup_counter_from_cgroup(struct hugetlb_cgroup *h_cg, int idx, in __hugetlb_cgroup_counter_from_cgroup()
45 hugetlb_cgroup_counter_from_cgroup(struct hugetlb_cgroup *h_cg, int idx) in hugetlb_cgroup_counter_from_cgroup()
51 hugetlb_cgroup_counter_from_cgroup_rsvd(struct hugetlb_cgroup *h_cg, int idx) in hugetlb_cgroup_counter_from_cgroup_rsvd()
57 struct hugetlb_cgroup *hugetlb_cgroup_from_css(struct cgroup_subsys_state *s) in hugetlb_cgroup_from_css()
59 return s ? container_of(s, struct hugetlb_cgroup, css) : NULL; in hugetlb_cgroup_from_css()
63 struct hugetlb_cgroup *hugetlb_cgroup_from_task(struct task_struct *task) in hugetlb_cgroup_from_task()
68 static inline bool hugetlb_cgroup_is_root(struct hugetlb_cgroup *h_cg) in hugetlb_cgroup_is_root()
73 static inline struct hugetlb_cgroup *
74 parent_hugetlb_cgroup(struct hugetlb_cgroup *h_cg) in parent_hugetlb_cgroup()
79 static inline bool hugetlb_cgroup_have_usage(struct hugetlb_cgroup *h_cg) in hugetlb_cgroup_have_usage()
91 static void hugetlb_cgroup_init(struct hugetlb_cgroup *h_cgroup, in hugetlb_cgroup_init()
92 struct hugetlb_cgroup *parent_h_cgroup) in hugetlb_cgroup_init()
132 struct hugetlb_cgroup *parent_h_cgroup = hugetlb_cgroup_from_css(parent_css); in hugetlb_cgroup_css_alloc()
133 struct hugetlb_cgroup *h_cgroup; in hugetlb_cgroup_css_alloc()
148 struct hugetlb_cgroup *h_cgroup; in hugetlb_cgroup_css_free()
161 static void hugetlb_cgroup_move_parent(int idx, struct hugetlb_cgroup *h_cg, in hugetlb_cgroup_move_parent()
166 struct hugetlb_cgroup *page_hcg; in hugetlb_cgroup_move_parent()
167 struct hugetlb_cgroup *parent = parent_hugetlb_cgroup(h_cg); in hugetlb_cgroup_move_parent()
199 struct hugetlb_cgroup *h_cg = hugetlb_cgroup_from_css(css); in hugetlb_cgroup_css_offline()
218 static inline void hugetlb_event(struct hugetlb_cgroup *hugetlb, int idx, in hugetlb_event()
232 struct hugetlb_cgroup **ptr, in __hugetlb_cgroup_charge_cgroup()
237 struct hugetlb_cgroup *h_cg = NULL; in __hugetlb_cgroup_charge_cgroup()
275 struct hugetlb_cgroup **ptr) in hugetlb_cgroup_charge_cgroup()
281 struct hugetlb_cgroup **ptr) in hugetlb_cgroup_charge_cgroup_rsvd()
288 struct hugetlb_cgroup *h_cg, in __hugetlb_cgroup_commit_charge()
299 struct hugetlb_cgroup *h_cg, in hugetlb_cgroup_commit_charge()
306 struct hugetlb_cgroup *h_cg, in hugetlb_cgroup_commit_charge_rsvd()
318 struct hugetlb_cgroup *h_cg; in __hugetlb_cgroup_uncharge_page()
351 struct hugetlb_cgroup *h_cg, in __hugetlb_cgroup_uncharge_cgroup()
369 struct hugetlb_cgroup *h_cg) in hugetlb_cgroup_uncharge_cgroup()
375 struct hugetlb_cgroup *h_cg) in hugetlb_cgroup_uncharge_cgroup_rsvd()
429 struct hugetlb_cgroup *h_cg = hugetlb_cgroup_from_css(css); in hugetlb_cgroup_read_u64()
463 struct hugetlb_cgroup *h_cg = hugetlb_cgroup_from_css(seq_css(seq)); in hugetlb_cgroup_read_u64_max()
504 struct hugetlb_cgroup *h_cg = hugetlb_cgroup_from_css(of_css(of)); in hugetlb_cgroup_write()
553 struct hugetlb_cgroup *h_cg = hugetlb_cgroup_from_css(of_css(of)); in hugetlb_cgroup_reset()
594 struct hugetlb_cgroup *h_cg = hugetlb_cgroup_from_css(seq_css(seq)); in __hugetlb_events_show()
662 cft->file_offset = offsetof(struct hugetlb_cgroup, events_file[idx]); in __hugetlb_cgroup_file_dfl_init()
670 cft->file_offset = offsetof(struct hugetlb_cgroup, in __hugetlb_cgroup_file_dfl_init()
780 struct hugetlb_cgroup *h_cg; in hugetlb_cgroup_migrate()
781 struct hugetlb_cgroup *h_cg_rsvd; in hugetlb_cgroup_migrate()