Home
last modified time | relevance | path

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

/Linux-v5.10/include/linux/
Dhugetlb_cgroup.h20 struct hugetlb_cgroup;
38 struct hugetlb_cgroup { struct
61 static inline struct hugetlb_cgroup * argument
69 return (struct hugetlb_cgroup *)page[3].private; in __hugetlb_cgroup_from_page()
71 return (struct hugetlb_cgroup *)page[2].private; in __hugetlb_cgroup_from_page()
74 static inline struct hugetlb_cgroup *hugetlb_cgroup_from_page(struct page *page) in hugetlb_cgroup_from_page()
79 static inline struct hugetlb_cgroup *
86 struct hugetlb_cgroup *h_cg, bool rsvd) in __set_hugetlb_cgroup()
100 struct hugetlb_cgroup *h_cg) in set_hugetlb_cgroup()
106 struct hugetlb_cgroup *h_cg) in set_hugetlb_cgroup_rsvd()
[all …]
/Linux-v5.10/mm/
Dhugetlb_cgroup.c31 container_of(counter, struct hugetlb_cgroup, hugepage[idx])
33 static struct hugetlb_cgroup *root_h_cgroup __read_mostly;
36 __hugetlb_cgroup_counter_from_cgroup(struct hugetlb_cgroup *h_cg, int 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()
51 hugetlb_cgroup_counter_from_cgroup_rsvd(struct hugetlb_cgroup *h_cg, int idx) in hugetlb_cgroup_counter_from_cgroup_rsvd()
57 struct hugetlb_cgroup *hugetlb_cgroup_from_css(struct cgroup_subsys_state *s) in hugetlb_cgroup_from_css()
59 return s ? container_of(s, struct hugetlb_cgroup, css) : NULL; in hugetlb_cgroup_from_css()
63 struct hugetlb_cgroup *hugetlb_cgroup_from_task(struct task_struct *task) in hugetlb_cgroup_from_task()
68 static inline bool hugetlb_cgroup_is_root(struct hugetlb_cgroup *h_cg) in hugetlb_cgroup_is_root()
73 static inline struct hugetlb_cgroup *
[all …]
DMakefile92 obj-$(CONFIG_CGROUP_HUGETLB) += hugetlb_cgroup.o
Dhugetlb.c263 static void record_hugetlb_cgroup_uncharge_info(struct hugetlb_cgroup *h_cg, in record_hugetlb_cgroup_uncharge_info()
333 struct hugetlb_cgroup *h_cg, in add_reservation_in_range()
480 struct hugetlb_cgroup *h_cg) in region_add()
834 struct hugetlb_cgroup *h_cg, in resv_map_set_hugetlb_cgroup_uncharge_info()
2265 struct hugetlb_cgroup *h_cg; in alloc_huge_page()
5017 struct hugetlb_cgroup *h_cg = NULL; in hugetlb_reserve_pages()