Searched refs:h_cg (Results 1 – 3 of 3) sorted by relevance
/linux/mm/ |
H A D | hugetlb_cgroup.c | 43 __hugetlb_cgroup_counter_from_cgroup(struct hugetlb_cgroup *h_cg, int idx, in __hugetlb_cgroup_counter_from_cgroup() argument 47 return &h_cg->rsvd_hugepage[idx]; in __hugetlb_cgroup_counter_from_cgroup() 48 return &h_cg->hugepage[idx]; in __hugetlb_cgroup_counter_from_cgroup() 52 hugetlb_cgroup_counter_from_cgroup(struct hugetlb_cgroup *h_cg, int idx) in hugetlb_cgroup_counter_from_cgroup() argument 54 return __hugetlb_cgroup_counter_from_cgroup(h_cg, idx, false); in hugetlb_cgroup_counter_from_cgroup() 58 hugetlb_cgroup_counter_from_cgroup_rsvd(struct hugetlb_cgroup *h_cg, int idx) in hugetlb_cgroup_counter_from_cgroup_rsvd() argument 60 return __hugetlb_cgroup_counter_from_cgroup(h_cg, idx, true); in hugetlb_cgroup_counter_from_cgroup_rsvd() 75 static inline bool hugetlb_cgroup_is_root(struct hugetlb_cgroup *h_cg) in hugetlb_cgroup_is_root() argument 77 return (h_cg == root_h_cgroup); in hugetlb_cgroup_is_root() 81 parent_hugetlb_cgroup(struct hugetlb_cgroup *h_cg) in parent_hugetlb_cgroup() argument [all …]
|
H A D | hugetlb.c | 467 static void record_hugetlb_cgroup_uncharge_info(struct hugetlb_cgroup *h_cg, in record_hugetlb_cgroup_uncharge_info() argument 473 if (h_cg) { in record_hugetlb_cgroup_uncharge_info() 475 &h_cg->rsvd_hugepage[hstate_index(h)]; in record_hugetlb_cgroup_uncharge_info() 476 nrg->css = &h_cg->css; in record_hugetlb_cgroup_uncharge_info() 487 css_get(&h_cg->css); in record_hugetlb_cgroup_uncharge_info() 575 struct hugetlb_cgroup *h_cg, in add_reservation_in_range() argument 616 iter->from, h, h_cg, in add_reservation_in_range() 629 t, h, h_cg, regions_needed); in add_reservation_in_range() 709 struct hugetlb_cgroup *h_cg) in region_add() argument 746 add = add_reservation_in_range(resv, f, t, h_cg, h, NULL); in region_add() [all …]
|
/linux/include/linux/ |
H A D | hugetlb_cgroup.h | 82 struct hugetlb_cgroup *h_cg, bool rsvd) in __set_hugetlb_cgroup() argument 86 folio->_hugetlb_cgroup_rsvd = h_cg; in __set_hugetlb_cgroup() 88 folio->_hugetlb_cgroup = h_cg; in __set_hugetlb_cgroup() 92 struct hugetlb_cgroup *h_cg) in set_hugetlb_cgroup() argument 94 __set_hugetlb_cgroup(folio, h_cg, false); in set_hugetlb_cgroup() 98 struct hugetlb_cgroup *h_cg) in set_hugetlb_cgroup_rsvd() argument 100 __set_hugetlb_cgroup(folio, h_cg, true); in set_hugetlb_cgroup_rsvd() 108 static inline void hugetlb_cgroup_put_rsvd_cgroup(struct hugetlb_cgroup *h_cg) in hugetlb_cgroup_put_rsvd_cgroup() argument 110 css_put(&h_cg->css); in hugetlb_cgroup_put_rsvd_cgroup() 132 struct hugetlb_cgroup *h_cg, [all …]
|