Home
last modified time | relevance | path

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

/linux-6.6.21/include/linux/
Dhugetlb_cgroup.h20 struct hugetlb_cgroup;
42 struct hugetlb_cgroup { struct
67 static inline struct hugetlb_cgroup * argument
79 static inline struct hugetlb_cgroup *hugetlb_cgroup_from_folio(struct folio *folio) in hugetlb_cgroup_from_folio()
84 static inline struct hugetlb_cgroup *
91 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()
139 struct hugetlb_cgroup **ptr);
[all …]
/linux-6.6.21/mm/
Dhugetlb_cgroup.c30 static struct hugetlb_cgroup *root_h_cgroup __read_mostly;
33 __hugetlb_cgroup_counter_from_cgroup(struct hugetlb_cgroup *h_cg, int idx, in __hugetlb_cgroup_counter_from_cgroup()
42 hugetlb_cgroup_counter_from_cgroup(struct hugetlb_cgroup *h_cg, int idx) in hugetlb_cgroup_counter_from_cgroup()
48 hugetlb_cgroup_counter_from_cgroup_rsvd(struct hugetlb_cgroup *h_cg, int idx) in hugetlb_cgroup_counter_from_cgroup_rsvd()
54 struct hugetlb_cgroup *hugetlb_cgroup_from_css(struct cgroup_subsys_state *s) in hugetlb_cgroup_from_css()
56 return s ? container_of(s, struct hugetlb_cgroup, css) : NULL; in hugetlb_cgroup_from_css()
60 struct hugetlb_cgroup *hugetlb_cgroup_from_task(struct task_struct *task) in hugetlb_cgroup_from_task()
65 static inline bool hugetlb_cgroup_is_root(struct hugetlb_cgroup *h_cg) in hugetlb_cgroup_is_root()
70 static inline struct hugetlb_cgroup *
71 parent_hugetlb_cgroup(struct hugetlb_cgroup *h_cg) in parent_hugetlb_cgroup()
[all …]
DMakefile102 obj-$(CONFIG_CGROUP_HUGETLB) += hugetlb_cgroup.o
Dhugetlb.c465 static void record_hugetlb_cgroup_uncharge_info(struct hugetlb_cgroup *h_cg, in record_hugetlb_cgroup_uncharge_info()
548 long to, struct hstate *h, struct hugetlb_cgroup *cg, in hugetlb_resv_map_add()
573 struct hugetlb_cgroup *h_cg, in add_reservation_in_range()
707 struct hugetlb_cgroup *h_cg) in region_add()
1072 struct hugetlb_cgroup *h_cg, in resv_map_set_hugetlb_cgroup_uncharge_info()
3053 struct hugetlb_cgroup *h_cg = NULL; in alloc_hugetlb_folio()
6719 struct hugetlb_cgroup *h_cg = NULL; in hugetlb_reserve_pages()