Home
last modified time | relevance | path

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

/Linux-v5.15/include/linux/
Dhugetlb_cgroup.h20 struct hugetlb_cgroup;
39 struct hugetlb_cgroup { struct
62 static inline struct hugetlb_cgroup * argument
75 static inline struct hugetlb_cgroup *hugetlb_cgroup_from_page(struct page *page) in hugetlb_cgroup_from_page()
80 static inline struct hugetlb_cgroup *
87 struct hugetlb_cgroup *h_cg, bool rsvd) in __set_hugetlb_cgroup()
103 struct hugetlb_cgroup *h_cg) in set_hugetlb_cgroup()
109 struct hugetlb_cgroup *h_cg) in set_hugetlb_cgroup_rsvd()
119 static inline void hugetlb_cgroup_put_rsvd_cgroup(struct hugetlb_cgroup *h_cg) in hugetlb_cgroup_put_rsvd_cgroup()
132 struct hugetlb_cgroup **ptr);
[all …]
/Linux-v5.15/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 …]
DMakefile97 obj-$(CONFIG_CGROUP_HUGETLB) += hugetlb_cgroup.o
Dhugetlb.c278 static void record_hugetlb_cgroup_uncharge_info(struct hugetlb_cgroup *h_cg, in record_hugetlb_cgroup_uncharge_info()
362 long to, struct hstate *h, struct hugetlb_cgroup *cg, in hugetlb_resv_map_add()
387 struct hugetlb_cgroup *h_cg, in add_reservation_in_range()
519 struct hugetlb_cgroup *h_cg) in region_add()
879 struct hugetlb_cgroup *h_cg, in resv_map_set_hugetlb_cgroup_uncharge_info()
2751 struct hugetlb_cgroup *h_cg; in alloc_huge_page()
5699 struct hugetlb_cgroup *h_cg = NULL; in hugetlb_reserve_pages()