Home
last modified time | relevance | path

Searched refs:h_cg (Results 1 – 3 of 3) sorted by relevance

/openbmc/linux/mm/
H A Dhugetlb_cgroup.c33 __hugetlb_cgroup_counter_from_cgroup(struct hugetlb_cgroup *h_cg, int idx, in __hugetlb_cgroup_counter_from_cgroup() argument
37 return &h_cg->rsvd_hugepage[idx]; in __hugetlb_cgroup_counter_from_cgroup()
38 return &h_cg->hugepage[idx]; in __hugetlb_cgroup_counter_from_cgroup()
42 hugetlb_cgroup_counter_from_cgroup(struct hugetlb_cgroup *h_cg, int idx) in hugetlb_cgroup_counter_from_cgroup() argument
44 return __hugetlb_cgroup_counter_from_cgroup(h_cg, idx, false); in hugetlb_cgroup_counter_from_cgroup()
48 hugetlb_cgroup_counter_from_cgroup_rsvd(struct hugetlb_cgroup *h_cg, int idx) in hugetlb_cgroup_counter_from_cgroup_rsvd() argument
50 return __hugetlb_cgroup_counter_from_cgroup(h_cg, idx, true); in hugetlb_cgroup_counter_from_cgroup_rsvd()
65 static inline bool hugetlb_cgroup_is_root(struct hugetlb_cgroup *h_cg) in hugetlb_cgroup_is_root() argument
67 return (h_cg == root_h_cgroup); in hugetlb_cgroup_is_root()
71 parent_hugetlb_cgroup(struct hugetlb_cgroup *h_cg) in parent_hugetlb_cgroup() argument
[all …]
H A Dhugetlb.c465 static void record_hugetlb_cgroup_uncharge_info(struct hugetlb_cgroup *h_cg, in record_hugetlb_cgroup_uncharge_info() argument
471 if (h_cg) { in record_hugetlb_cgroup_uncharge_info()
473 &h_cg->rsvd_hugepage[hstate_index(h)]; in record_hugetlb_cgroup_uncharge_info()
474 nrg->css = &h_cg->css; in record_hugetlb_cgroup_uncharge_info()
485 css_get(&h_cg->css); in record_hugetlb_cgroup_uncharge_info()
573 struct hugetlb_cgroup *h_cg, in add_reservation_in_range() argument
614 iter->from, h, h_cg, in add_reservation_in_range()
627 t, h, h_cg, regions_needed); in add_reservation_in_range()
707 struct hugetlb_cgroup *h_cg) in region_add() argument
744 add = add_reservation_in_range(resv, f, t, h_cg, h, NULL); in region_add()
[all …]
/openbmc/linux/include/linux/
H A Dhugetlb_cgroup.h91 struct hugetlb_cgroup *h_cg, bool rsvd) in __set_hugetlb_cgroup() argument
97 folio->_hugetlb_cgroup_rsvd = h_cg; in __set_hugetlb_cgroup()
99 folio->_hugetlb_cgroup = h_cg; in __set_hugetlb_cgroup()
103 struct hugetlb_cgroup *h_cg) in set_hugetlb_cgroup() argument
105 __set_hugetlb_cgroup(folio, h_cg, false); in set_hugetlb_cgroup()
109 struct hugetlb_cgroup *h_cg) in set_hugetlb_cgroup_rsvd() argument
111 __set_hugetlb_cgroup(folio, h_cg, true); in set_hugetlb_cgroup_rsvd()
119 static inline void hugetlb_cgroup_put_rsvd_cgroup(struct hugetlb_cgroup *h_cg) in hugetlb_cgroup_put_rsvd_cgroup() argument
121 css_put(&h_cg->css); in hugetlb_cgroup_put_rsvd_cgroup()
143 struct hugetlb_cgroup *h_cg,
[all …]