Searched refs:h_cg (Results 1 – 2 of 2) sorted by relevance
/mm/ |
D | hugetlb_cgroup.c | 36 __hugetlb_cgroup_counter_from_cgroup(struct hugetlb_cgroup *h_cg, int idx, in __hugetlb_cgroup_counter_from_cgroup() argument 40 return &h_cg->rsvd_hugepage[idx]; in __hugetlb_cgroup_counter_from_cgroup() 41 return &h_cg->hugepage[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() argument 47 return __hugetlb_cgroup_counter_from_cgroup(h_cg, idx, false); 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() argument 53 return __hugetlb_cgroup_counter_from_cgroup(h_cg, idx, true); in hugetlb_cgroup_counter_from_cgroup_rsvd() 68 static inline bool hugetlb_cgroup_is_root(struct hugetlb_cgroup *h_cg) in hugetlb_cgroup_is_root() argument 70 return (h_cg == root_h_cgroup); in hugetlb_cgroup_is_root() 74 parent_hugetlb_cgroup(struct hugetlb_cgroup *h_cg) in parent_hugetlb_cgroup() argument [all …]
|
D | hugetlb.c | 280 static void record_hugetlb_cgroup_uncharge_info(struct hugetlb_cgroup *h_cg, in record_hugetlb_cgroup_uncharge_info() argument 286 if (h_cg) { in record_hugetlb_cgroup_uncharge_info() 288 &h_cg->rsvd_hugepage[hstate_index(h)]; in record_hugetlb_cgroup_uncharge_info() 289 nrg->css = &h_cg->css; in record_hugetlb_cgroup_uncharge_info() 300 css_get(&h_cg->css); in record_hugetlb_cgroup_uncharge_info() 389 struct hugetlb_cgroup *h_cg, in add_reservation_in_range() argument 427 rg->from, h, h_cg, in add_reservation_in_range() 438 t, h, h_cg, regions_needed); in add_reservation_in_range() 521 struct hugetlb_cgroup *h_cg) in region_add() argument 558 add = add_reservation_in_range(resv, f, t, h_cg, h, NULL); in region_add() [all …]
|