Lines Matching defs:memcg
13 static inline int try_charge(struct mem_cgroup *memcg, gfp_t gfp_mask, in try_charge()
78 static inline void memcg1_soft_limit_reset(struct mem_cgroup *memcg) in memcg1_soft_limit_reset()
106 static inline bool memcg1_tcpmem_active(struct mem_cgroup *memcg) in memcg1_tcpmem_active()
112 static inline void memcg1_uncharge_skmem(struct mem_cgroup *memcg, unsigned int nr_pages) in memcg1_uncharge_skmem()
122 static inline bool memcg1_alloc_events(struct mem_cgroup *memcg) { return true; } in memcg1_alloc_events()
123 static inline void memcg1_free_events(struct mem_cgroup *memcg) {} in memcg1_free_events()
125 static inline void memcg1_memcg_init(struct mem_cgroup *memcg) {} in memcg1_memcg_init()
126 static inline void memcg1_remove_from_trees(struct mem_cgroup *memcg) {} in memcg1_remove_from_trees()
127 static inline void memcg1_soft_limit_reset(struct mem_cgroup *memcg) {} in memcg1_soft_limit_reset()
128 static inline void memcg1_css_offline(struct mem_cgroup *memcg) {} in memcg1_css_offline()
130 static inline bool memcg1_oom_prepare(struct mem_cgroup *memcg, bool *locked) { return true; } in memcg1_oom_prepare()
131 static inline void memcg1_oom_finish(struct mem_cgroup *memcg, bool locked) {} in memcg1_oom_finish()
132 static inline void memcg1_oom_recover(struct mem_cgroup *memcg) {} in memcg1_oom_recover()
135 struct mem_cgroup *memcg) {} in memcg1_commit_charge()
137 static inline void memcg1_swapout(struct folio *folio, struct mem_cgroup *memcg) {} in memcg1_swapout()
139 static inline void memcg1_uncharge_batch(struct mem_cgroup *memcg, in memcg1_uncharge_batch()
143 static inline void memcg1_stat_format(struct mem_cgroup *memcg, struct seq_buf *s) {} in memcg1_stat_format()
145 static inline void memcg1_account_kmem(struct mem_cgroup *memcg, int nr_pages) {} in memcg1_account_kmem()
146 static inline bool memcg1_tcpmem_active(struct mem_cgroup *memcg) { return false; } in memcg1_tcpmem_active()
147 static inline bool memcg1_charge_skmem(struct mem_cgroup *memcg, unsigned int nr_pages, in memcg1_charge_skmem()
149 static inline void memcg1_uncharge_skmem(struct mem_cgroup *memcg, unsigned int nr_pages) {} in memcg1_uncharge_skmem()