Home
last modified time | relevance | path

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

/Linux-v6.1/mm/
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 …]
Dhugetlb.c290 static void record_hugetlb_cgroup_uncharge_info(struct hugetlb_cgroup *h_cg, in record_hugetlb_cgroup_uncharge_info() argument
296 if (h_cg) { in record_hugetlb_cgroup_uncharge_info()
298 &h_cg->rsvd_hugepage[hstate_index(h)]; in record_hugetlb_cgroup_uncharge_info()
299 nrg->css = &h_cg->css; in record_hugetlb_cgroup_uncharge_info()
310 css_get(&h_cg->css); in record_hugetlb_cgroup_uncharge_info()
398 struct hugetlb_cgroup *h_cg, in add_reservation_in_range() argument
439 iter->from, h, h_cg, in add_reservation_in_range()
452 t, h, h_cg, regions_needed); in add_reservation_in_range()
532 struct hugetlb_cgroup *h_cg) in region_add() argument
569 add = add_reservation_in_range(resv, f, t, h_cg, h, NULL); in region_add()
[all …]
/Linux-v6.1/include/linux/
Dhugetlb_cgroup.h94 struct hugetlb_cgroup *h_cg, bool rsvd) in __set_hugetlb_cgroup() argument
102 (unsigned long)h_cg); in __set_hugetlb_cgroup()
105 (unsigned long)h_cg); in __set_hugetlb_cgroup()
109 struct hugetlb_cgroup *h_cg) in set_hugetlb_cgroup() argument
111 __set_hugetlb_cgroup(page, h_cg, false); in set_hugetlb_cgroup()
115 struct hugetlb_cgroup *h_cg) in set_hugetlb_cgroup_rsvd() argument
117 __set_hugetlb_cgroup(page, h_cg, true); in set_hugetlb_cgroup_rsvd()
125 static inline void hugetlb_cgroup_put_rsvd_cgroup(struct hugetlb_cgroup *h_cg) in hugetlb_cgroup_put_rsvd_cgroup() argument
127 css_put(&h_cg->css); in hugetlb_cgroup_put_rsvd_cgroup()
149 struct hugetlb_cgroup *h_cg,
[all …]