Home
last modified time | relevance | path

Searched refs:mem_cgroup (Results 1 – 25 of 40) sorted by relevance

12

/Linux-v4.19/include/linux/
Dmemcontrol.h34 struct mem_cgroup;
105 struct mem_cgroup *position;
146 struct mem_cgroup *memcg; /* Back pointer, we cannot */
197 struct mem_cgroup { struct
324 extern struct mem_cgroup *root_mem_cgroup; argument
326 static inline bool mem_cgroup_is_root(struct mem_cgroup *memcg) in mem_cgroup_is_root()
336 enum mem_cgroup_protection mem_cgroup_protected(struct mem_cgroup *root,
337 struct mem_cgroup *memcg);
340 gfp_t gfp_mask, struct mem_cgroup **memcgp,
343 gfp_t gfp_mask, struct mem_cgroup **memcgp,
[all …]
Dvmpressure.h30 struct mem_cgroup;
33 extern void vmpressure(gfp_t gfp, struct mem_cgroup *memcg, bool tree,
35 extern void vmpressure_prio(gfp_t gfp, struct mem_cgroup *memcg, int prio);
39 extern struct vmpressure *memcg_to_vmpressure(struct mem_cgroup *memcg);
41 extern int vmpressure_register_event(struct mem_cgroup *memcg,
44 extern void vmpressure_unregister_event(struct mem_cgroup *memcg,
47 static inline void vmpressure(gfp_t gfp, struct mem_cgroup *memcg, bool tree, in vmpressure()
49 static inline void vmpressure_prio(gfp_t gfp, struct mem_cgroup *memcg, in vmpressure_prio()
Dlist_lru.h15 struct mem_cgroup;
72 void memcg_drain_all_list_lrus(int src_idx, struct mem_cgroup *dst_memcg);
116 int nid, struct mem_cgroup *memcg);
166 int nid, struct mem_cgroup *memcg,
183 int nid, struct mem_cgroup *memcg,
Doom.h15 struct mem_cgroup;
30 struct mem_cgroup *memcg;
101 struct mem_cgroup *memcg, const nodemask_t *nodemask,
Dswap.h348 extern unsigned long try_to_free_mem_cgroup_pages(struct mem_cgroup *memcg,
352 extern unsigned long mem_cgroup_shrink_node(struct mem_cgroup *mem,
620 static inline int mem_cgroup_swappiness(struct mem_cgroup *memcg) in mem_cgroup_swappiness()
633 static inline int mem_cgroup_swappiness(struct mem_cgroup *mem) in mem_cgroup_swappiness()
640 extern void mem_cgroup_throttle_swaprate(struct mem_cgroup *memcg, int node,
643 static inline void mem_cgroup_throttle_swaprate(struct mem_cgroup *memcg, in mem_cgroup_throttle_swaprate()
653 extern long mem_cgroup_get_nr_swap_pages(struct mem_cgroup *memcg);
671 static inline long mem_cgroup_get_nr_swap_pages(struct mem_cgroup *memcg) in mem_cgroup_get_nr_swap_pages()
Dslab.h131 struct mem_cgroup;
151 void memcg_create_kmem_cache(struct mem_cgroup *, struct kmem_cache *);
152 void memcg_deactivate_kmem_caches(struct mem_cgroup *);
153 void memcg_destroy_kmem_caches(struct mem_cgroup *);
606 struct mem_cgroup *memcg;
Dmm_types.h28 struct mem_cgroup;
186 struct mem_cgroup *mem_cgroup; member
Drmap.h196 struct mem_cgroup *memcg, unsigned long *vm_flags);
285 struct mem_cgroup *memcg, in page_referenced()
Dshrinker.h33 struct mem_cgroup *memcg;
Dksm.h19 struct mem_cgroup;
Dfsnotify_backend.h87 struct mem_cgroup;
175 struct mem_cgroup *memcg; /* memcg to charge allocations */
Dbacking-dev.h232 void wb_memcg_offline(struct mem_cgroup *memcg);
449 static inline void wb_memcg_offline(struct mem_cgroup *memcg) in wb_memcg_offline()
Dmm.h357 struct mem_cgroup *memcg; /* Cgroup cow_page belongs to */
731 vm_fault_t alloc_set_pte(struct vm_fault *vmf, struct mem_cgroup *memcg,
1130 static inline struct mem_cgroup *page_memcg(struct page *page) in page_memcg()
1132 return page->mem_cgroup; in page_memcg()
1134 static inline struct mem_cgroup *page_memcg_rcu(struct page *page) in page_memcg_rcu()
1137 return READ_ONCE(page->mem_cgroup); in page_memcg_rcu()
1140 static inline struct mem_cgroup *page_memcg(struct page *page) in page_memcg()
1144 static inline struct mem_cgroup *page_memcg_rcu(struct page *page) in page_memcg_rcu()
/Linux-v4.19/mm/
Dmemcontrol.c80 struct mem_cgroup *root_mem_cgroup __read_mostly;
145 struct mem_cgroup *memcg;
159 int (*register_event)(struct mem_cgroup *memcg,
166 void (*unregister_event)(struct mem_cgroup *memcg,
178 static void mem_cgroup_threshold(struct mem_cgroup *memcg);
179 static void mem_cgroup_oom_notify(struct mem_cgroup *memcg);
193 struct mem_cgroup *from;
194 struct mem_cgroup *to;
252 struct vmpressure *memcg_to_vmpressure(struct mem_cgroup *memcg) in memcg_to_vmpressure()
261 return &container_of(vmpr, struct mem_cgroup, vmpressure)->css; in vmpressure_to_css()
[all …]
Dlist_lru.c62 static __always_inline struct mem_cgroup *mem_cgroup_from_kmem(void *ptr) in mem_cgroup_from_kmem()
69 return page->mem_cgroup; in mem_cgroup_from_kmem()
74 struct mem_cgroup **memcg_ptr) in list_lru_from_kmem()
77 struct mem_cgroup *memcg = NULL; in list_lru_from_kmem()
119 struct mem_cgroup **memcg_ptr) in list_lru_from_kmem()
131 struct mem_cgroup *memcg; in list_lru_add()
187 int nid, struct mem_cgroup *memcg) in list_lru_count_one()
270 list_lru_walk_one(struct list_lru *lru, int nid, struct mem_cgroup *memcg, in list_lru_walk_one()
286 list_lru_walk_one_irq(struct list_lru *lru, int nid, struct mem_cgroup *memcg, in list_lru_walk_one_irq()
542 int src_idx, struct mem_cgroup *dst_memcg) in memcg_drain_list_lru_node()
[all …]
Dvmpressure.c81 struct mem_cgroup *memcg = mem_cgroup_from_css(css); in vmpressure_parent()
243 void vmpressure(gfp_t gfp, struct mem_cgroup *memcg, bool tree, in vmpressure()
326 void vmpressure_prio(gfp_t gfp, struct mem_cgroup *memcg, int prio) in vmpressure_prio()
362 int vmpressure_register_event(struct mem_cgroup *memcg, in vmpressure_register_event()
426 void vmpressure_unregister_event(struct mem_cgroup *memcg, in vmpressure_unregister_event()
Dvmscan.c78 struct mem_cgroup *target_mem_cgroup;
257 struct mem_cgroup *memcg = sc->target_mem_cgroup; in sane_reclaim()
269 struct mem_cgroup *memcg, in set_memcg_congestion()
282 struct mem_cgroup *memcg) in memcg_congested()
302 struct mem_cgroup *memcg, bool congested) in set_memcg_congestion()
307 struct mem_cgroup *memcg) in memcg_congested()
580 struct mem_cgroup *memcg, int priority) in shrink_slab_memcg()
650 struct mem_cgroup *memcg, int priority) in shrink_slab_memcg()
677 struct mem_cgroup *memcg, in shrink_slab()
722 struct mem_cgroup *memcg = NULL; in drop_slab_node()
[all …]
Dworkingset.c210 struct mem_cgroup *memcg = page_memcg(page); in workingset_eviction()
239 struct mem_cgroup *memcg; in workingset_refault()
309 struct mem_cgroup *memcg; in workingset_activation()
Ddebug.c85 if (!page_poisoned && page->mem_cgroup) in __dump_page()
86 pr_alert("page->mem_cgroup:%px\n", page->mem_cgroup); in __dump_page()
Dslab_common.c143 struct mem_cgroup *memcg, struct kmem_cache *root_cache) in init_memcg_params()
247 struct mem_cgroup *memcg, struct kmem_cache *root_cache) in init_memcg_params()
367 struct mem_cgroup *memcg, struct kmem_cache *root_cache) in create_cache()
597 void memcg_create_kmem_cache(struct mem_cgroup *memcg, in memcg_create_kmem_cache()
730 void memcg_deactivate_kmem_caches(struct mem_cgroup *memcg) in memcg_deactivate_kmem_caches()
758 void memcg_destroy_kmem_caches(struct mem_cgroup *memcg) in memcg_destroy_kmem_caches()
1381 struct mem_cgroup *memcg = mem_cgroup_from_css(seq_css(m)); in memcg_slab_start()
1389 struct mem_cgroup *memcg = mem_cgroup_from_css(seq_css(m)); in memcg_slab_next()
1403 struct mem_cgroup *memcg = mem_cgroup_from_css(seq_css(m)); in memcg_slab_show()
Doom_kill.c155 struct mem_cgroup *memcg, const nodemask_t *nodemask) in oom_unkillable_task()
203 unsigned long oom_badness(struct task_struct *p, struct mem_cgroup *memcg, in oom_badness()
398 static void dump_tasks(struct mem_cgroup *memcg, const nodemask_t *nodemask) in dump_tasks()
932 struct mem_cgroup *oom_group; in oom_kill_process()
Drmap.c748 struct mem_cgroup *memcg;
818 struct mem_cgroup *memcg = pra->memcg; in invalid_page_referenced_vma()
838 struct mem_cgroup *memcg, in page_referenced()
Dbacking-dev.c539 struct mem_cgroup *memcg; in cgwb_create()
733 void wb_memcg_offline(struct mem_cgroup *memcg) in wb_memcg_offline()
Duserfaultfd.c30 struct mem_cgroup *memcg; in mcopy_atomic_pte()
/Linux-v4.19/include/linux/sched/
Dmm.h262 static inline void memalloc_use_memcg(struct mem_cgroup *memcg) in memalloc_use_memcg()
279 static inline void memalloc_use_memcg(struct mem_cgroup *memcg) in memalloc_use_memcg()

12