Home
last modified time | relevance | path

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

12

/linux-6.1.9/include/linux/
Dmemcontrol.h25 struct mem_cgroup;
87 struct mem_cgroup *position;
137 struct mem_cgroup *memcg; /* Back pointer, we cannot */
192 struct mem_cgroup *memcg;
206 struct mem_cgroup { struct
338 extern struct mem_cgroup *root_mem_cgroup; argument
360 static inline struct mem_cgroup *obj_cgroup_memcg(struct obj_cgroup *objcg) in obj_cgroup_memcg()
375 static inline struct mem_cgroup *__folio_memcg(struct folio *folio) in __folio_memcg()
383 return (struct mem_cgroup *)(memcg_data & ~MEMCG_DATA_FLAGS_MASK); in __folio_memcg()
428 static inline struct mem_cgroup *folio_memcg(struct folio *folio) in folio_memcg()
[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);
40 extern struct mem_cgroup *vmpressure_to_memcg(struct vmpressure *vmpr);
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.h16 struct mem_cgroup;
70 int memcg_list_lru_alloc(struct mem_cgroup *memcg, struct list_lru *lru,
72 void memcg_reparent_list_lrus(struct mem_cgroup *memcg, struct mem_cgroup *parent);
116 int nid, struct mem_cgroup *memcg);
166 int nid, struct mem_cgroup *memcg,
183 int nid, struct mem_cgroup *memcg,
Dswap.h365 void *workingset_eviction(struct folio *folio, struct mem_cgroup *target_memcg);
426 extern unsigned long try_to_free_mem_cgroup_pages(struct mem_cgroup *memcg,
430 extern unsigned long mem_cgroup_shrink_node(struct mem_cgroup *mem,
627 static inline int mem_cgroup_swappiness(struct mem_cgroup *memcg) in mem_cgroup_swappiness()
640 static inline int mem_cgroup_swappiness(struct mem_cgroup *mem) in mem_cgroup_swappiness()
688 extern long mem_cgroup_get_nr_swap_pages(struct mem_cgroup *memcg);
706 static inline long mem_cgroup_get_nr_swap_pages(struct mem_cgroup *memcg) in mem_cgroup_get_nr_swap_pages()
Doom.h15 struct mem_cgroup;
37 struct mem_cgroup *memcg;
Dbacking-dev.h150 void wb_memcg_offline(struct mem_cgroup *memcg);
354 static inline void wb_memcg_offline(struct mem_cgroup *memcg) in wb_memcg_offline()
Dshrinker.h33 struct mem_cgroup *memcg;
Drmap.h358 struct mem_cgroup *memcg, unsigned long *vm_flags);
474 struct mem_cgroup *memcg, in folio_referenced()
Dmmzone.h482 void lru_gen_init_memcg(struct mem_cgroup *memcg);
483 void lru_gen_exit_memcg(struct mem_cgroup *memcg);
497 static inline void lru_gen_init_memcg(struct mem_cgroup *memcg) in lru_gen_init_memcg()
501 static inline void lru_gen_exit_memcg(struct mem_cgroup *memcg) in lru_gen_exit_memcg()
Dmm_types.h32 struct mem_cgroup;
715 struct mem_cgroup *memcg;
Dfsnotify_backend.h119 struct mem_cgroup;
232 struct mem_cgroup *memcg; /* memcg to charge allocations */
Dslab.h151 struct mem_cgroup;
/linux-6.1.9/mm/
Dmemcontrol.c79 struct mem_cgroup *root_mem_cgroup __read_mostly;
82 DEFINE_PER_CPU(struct mem_cgroup *, int_active_memcg);
134 struct mem_cgroup *memcg;
148 int (*register_event)(struct mem_cgroup *memcg,
155 void (*unregister_event)(struct mem_cgroup *memcg,
167 static void mem_cgroup_threshold(struct mem_cgroup *memcg);
168 static void mem_cgroup_oom_notify(struct mem_cgroup *memcg);
182 struct mem_cgroup *from;
183 struct mem_cgroup *to;
236 struct vmpressure *memcg_to_vmpressure(struct mem_cgroup *memcg) in memcg_to_vmpressure()
[all …]
Dlist_lru.c65 struct mem_cgroup **memcg_ptr) in list_lru_from_kmem()
69 struct mem_cgroup *memcg = NULL; in list_lru_from_kmem()
111 struct mem_cgroup **memcg_ptr) in list_lru_from_kmem()
123 struct mem_cgroup *memcg; in list_lru_add()
179 int nid, struct mem_cgroup *memcg) in list_lru_count_one()
268 list_lru_walk_one(struct list_lru *lru, int nid, struct mem_cgroup *memcg, in list_lru_walk_one()
284 list_lru_walk_one_irq(struct list_lru *lru, int nid, struct mem_cgroup *memcg, in list_lru_walk_one_irq()
391 int src_idx, struct mem_cgroup *dst_memcg) in memcg_reparent_list_lru_node()
420 int src_idx, struct mem_cgroup *dst_memcg) in memcg_reparent_list_lru()
430 void memcg_reparent_list_lrus(struct mem_cgroup *memcg, struct mem_cgroup *parent) in memcg_reparent_list_lrus()
[all …]
Dvmpressure.c77 struct mem_cgroup *memcg = vmpressure_to_memcg(vmpr); in vmpressure_parent()
239 void vmpressure(gfp_t gfp, struct mem_cgroup *memcg, bool tree, in vmpressure()
327 void vmpressure_prio(gfp_t gfp, struct mem_cgroup *memcg, int prio) in vmpressure_prio()
366 int vmpressure_register_event(struct mem_cgroup *memcg, in vmpressure_register_event()
427 void vmpressure_unregister_event(struct mem_cgroup *memcg, in vmpressure_unregister_event()
Dworkingset.c231 struct mem_cgroup *memcg = folio_memcg(folio); in lru_gen_eviction()
256 struct mem_cgroup *memcg; in lru_gen_refault()
351 void *workingset_eviction(struct folio *folio, struct mem_cgroup *target_memcg) in workingset_eviction()
388 struct mem_cgroup *eviction_memcg; in workingset_refault()
393 struct mem_cgroup *memcg; in workingset_refault()
509 struct mem_cgroup *memcg; in workingset_activation()
Dvmscan.c85 struct mem_cgroup *target_mem_cgroup;
223 static struct shrinker_info *shrinker_info_protected(struct mem_cgroup *memcg, in shrinker_info_protected()
230 static int expand_one_shrinker_info(struct mem_cgroup *memcg, in expand_one_shrinker_info()
268 void free_shrinker_info(struct mem_cgroup *memcg) in free_shrinker_info()
282 int alloc_shrinker_info(struct mem_cgroup *memcg) in alloc_shrinker_info()
320 struct mem_cgroup *memcg; in expand_shrinker_info()
351 void set_shrinker_bit(struct mem_cgroup *memcg, int nid, int shrinker_id) in set_shrinker_bit()
405 struct mem_cgroup *memcg) in xchg_nr_deferred_memcg()
414 struct mem_cgroup *memcg) in add_nr_deferred_memcg()
422 void reparent_shrinker_deferred(struct mem_cgroup *memcg) in reparent_shrinker_deferred()
[all …]
Dshrinker_debug.c17 struct mem_cgroup *memcg, in shrinker_count_objects()
49 struct mem_cgroup *memcg; in shrinker_debugfs_count_show()
117 struct mem_cgroup *memcg = NULL; in shrinker_debugfs_scan_write()
Dmmap_lock.c202 struct mem_cgroup *memcg = get_mem_cgroup_from_mm(mm); in get_mm_memcg_path()
Dslab.h491 struct mem_cgroup *memcg; in memcg_slab_pre_alloc_hook()
582 static inline struct mem_cgroup *memcg_from_slab_obj(void *ptr) in memcg_from_slab_obj()
Dbacking-dev.c440 struct mem_cgroup *memcg; in cgwb_create()
702 void wb_memcg_offline(struct mem_cgroup *memcg) in wb_memcg_offline()
/linux-6.1.9/include/linux/sched/
Dmm.h365 DECLARE_PER_CPU(struct mem_cgroup *, int_active_memcg);
377 static inline struct mem_cgroup *
378 set_active_memcg(struct mem_cgroup *memcg) in set_active_memcg()
380 struct mem_cgroup *old; in set_active_memcg()
393 static inline struct mem_cgroup *
394 set_active_memcg(struct mem_cgroup *memcg) in set_active_memcg()
/linux-6.1.9/arch/x86/kernel/cpu/sgx/
Dencl.c978 static struct mem_cgroup *sgx_encl_get_mem_cgroup(struct sgx_encl *encl) in sgx_encl_get_mem_cgroup()
980 struct mem_cgroup *memcg = NULL; in sgx_encl_get_mem_cgroup()
1043 struct mem_cgroup *encl_memcg = sgx_encl_get_mem_cgroup(encl); in sgx_encl_alloc_backing()
1044 struct mem_cgroup *memcg = set_active_memcg(encl_memcg); in sgx_encl_alloc_backing()
/linux-6.1.9/fs/notify/inotify/
Dinotify_fsnotify.c70 struct mem_cgroup *old_memcg; in inotify_handle_inode_event()
/linux-6.1.9/kernel/bpf/
Dmemalloc.c149 static struct mem_cgroup *get_memcg(const struct bpf_mem_cache *c) in get_memcg()
166 struct mem_cgroup *memcg = NULL, *old_memcg; in alloc_bulk()

12