Home
last modified time | relevance | path

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

/linux-4.4.14/mm/
Dhugetlb_cgroup.c74 struct hugetlb_cgroup *h_cgroup; in hugetlb_cgroup_css_alloc() local
77 h_cgroup = kzalloc(sizeof(*h_cgroup), GFP_KERNEL); in hugetlb_cgroup_css_alloc()
78 if (!h_cgroup) in hugetlb_cgroup_css_alloc()
83 page_counter_init(&h_cgroup->hugepage[idx], in hugetlb_cgroup_css_alloc()
86 root_h_cgroup = h_cgroup; in hugetlb_cgroup_css_alloc()
88 page_counter_init(&h_cgroup->hugepage[idx], NULL); in hugetlb_cgroup_css_alloc()
90 return &h_cgroup->css; in hugetlb_cgroup_css_alloc()
95 struct hugetlb_cgroup *h_cgroup; in hugetlb_cgroup_css_free() local
97 h_cgroup = hugetlb_cgroup_from_css(css); in hugetlb_cgroup_css_free()
98 kfree(h_cgroup); in hugetlb_cgroup_css_free()