Lines Matching refs:h_cgroup
98 static void hugetlb_cgroup_init(struct hugetlb_cgroup *h_cgroup, in hugetlb_cgroup_init() argument
115 page_counter_init(hugetlb_cgroup_counter_from_cgroup(h_cgroup, in hugetlb_cgroup_init()
119 hugetlb_cgroup_counter_from_cgroup_rsvd(h_cgroup, idx), in hugetlb_cgroup_init()
126 hugetlb_cgroup_counter_from_cgroup(h_cgroup, idx), in hugetlb_cgroup_init()
130 hugetlb_cgroup_counter_from_cgroup_rsvd(h_cgroup, idx), in hugetlb_cgroup_init()
136 static void hugetlb_cgroup_free(struct hugetlb_cgroup *h_cgroup) in hugetlb_cgroup_free() argument
141 kfree(h_cgroup->nodeinfo[node]); in hugetlb_cgroup_free()
142 kfree(h_cgroup); in hugetlb_cgroup_free()
149 struct hugetlb_cgroup *h_cgroup; in hugetlb_cgroup_css_alloc() local
152 h_cgroup = kzalloc(struct_size(h_cgroup, nodeinfo, nr_node_ids), in hugetlb_cgroup_css_alloc()
155 if (!h_cgroup) in hugetlb_cgroup_css_alloc()
159 root_h_cgroup = h_cgroup; in hugetlb_cgroup_css_alloc()
170 h_cgroup->nodeinfo[node] = in hugetlb_cgroup_css_alloc()
173 if (!h_cgroup->nodeinfo[node]) in hugetlb_cgroup_css_alloc()
177 hugetlb_cgroup_init(h_cgroup, parent_h_cgroup); in hugetlb_cgroup_css_alloc()
178 return &h_cgroup->css; in hugetlb_cgroup_css_alloc()
181 hugetlb_cgroup_free(h_cgroup); in hugetlb_cgroup_css_alloc()