Home
last modified time | relevance | path

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

12

/linux-6.6.21/include/linux/
Dmemcontrol.h25 struct mem_cgroup;
86 struct mem_cgroup *position;
140 struct mem_cgroup *memcg; /* Back pointer, we cannot */
195 struct mem_cgroup *memcg;
209 struct mem_cgroup { struct
346 extern struct mem_cgroup *root_mem_cgroup; argument
368 static inline struct mem_cgroup *obj_cgroup_memcg(struct obj_cgroup *objcg) in obj_cgroup_memcg()
383 static inline struct mem_cgroup *__folio_memcg(struct folio *folio) in __folio_memcg()
391 return (struct mem_cgroup *)(memcg_data & ~MEMCG_DATA_FLAGS_MASK); in __folio_memcg()
436 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.h348 void *workingset_eviction(struct folio *folio, struct mem_cgroup *target_memcg);
409 extern unsigned long try_to_free_mem_cgroup_pages(struct mem_cgroup *memcg,
413 extern unsigned long mem_cgroup_shrink_node(struct mem_cgroup *mem,
613 static inline int mem_cgroup_swappiness(struct mem_cgroup *memcg) in mem_cgroup_swappiness()
626 static inline int mem_cgroup_swappiness(struct mem_cgroup *mem) in mem_cgroup_swappiness()
665 extern long mem_cgroup_get_nr_swap_pages(struct mem_cgroup *memcg);
683 static inline long mem_cgroup_get_nr_swap_pages(struct mem_cgroup *memcg) in mem_cgroup_get_nr_swap_pages()
Dmmzone.h554 void lru_gen_init_memcg(struct mem_cgroup *memcg);
555 void lru_gen_exit_memcg(struct mem_cgroup *memcg);
556 void lru_gen_online_memcg(struct mem_cgroup *memcg);
557 void lru_gen_offline_memcg(struct mem_cgroup *memcg);
558 void lru_gen_release_memcg(struct mem_cgroup *memcg);
559 void lru_gen_soft_reclaim(struct mem_cgroup *memcg, int nid);
590 static inline void lru_gen_init_memcg(struct mem_cgroup *memcg) in lru_gen_init_memcg()
594 static inline void lru_gen_exit_memcg(struct mem_cgroup *memcg) in lru_gen_exit_memcg()
598 static inline void lru_gen_online_memcg(struct mem_cgroup *memcg) in lru_gen_online_memcg()
602 static inline void lru_gen_offline_memcg(struct mem_cgroup *memcg) in lru_gen_offline_memcg()
[all …]
Doom.h15 struct mem_cgroup;
37 struct mem_cgroup *memcg;
Dbacking-dev.h159 void wb_memcg_offline(struct mem_cgroup *memcg);
363 static inline void wb_memcg_offline(struct mem_cgroup *memcg) in wb_memcg_offline()
Dshrinker.h36 struct mem_cgroup *memcg;
Drmap.h369 struct mem_cgroup *memcg, unsigned long *vm_flags);
484 struct mem_cgroup *memcg, in folio_referenced()
Dfsnotify_backend.h119 struct mem_cgroup;
232 struct mem_cgroup *memcg; /* memcg to charge allocations */
Dmm_types.h33 struct mem_cgroup;
916 struct mem_cgroup *memcg;
/linux-6.6.21/mm/
Dmemcontrol.c80 struct mem_cgroup *root_mem_cgroup __read_mostly;
83 DEFINE_PER_CPU(struct mem_cgroup *, int_active_memcg);
138 struct mem_cgroup *memcg;
152 int (*register_event)(struct mem_cgroup *memcg,
159 void (*unregister_event)(struct mem_cgroup *memcg,
171 static void mem_cgroup_threshold(struct mem_cgroup *memcg);
172 static void mem_cgroup_oom_notify(struct mem_cgroup *memcg);
186 struct mem_cgroup *from;
187 struct mem_cgroup *to;
240 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()
335 void vmpressure_prio(gfp_t gfp, struct mem_cgroup *memcg, int prio) in vmpressure_prio()
374 int vmpressure_register_event(struct mem_cgroup *memcg, in vmpressure_register_event()
435 void vmpressure_unregister_event(struct mem_cgroup *memcg, in vmpressure_unregister_event()
Dworkingset.c242 struct mem_cgroup *memcg = folio_memcg(folio); in lru_gen_eviction()
267 struct mem_cgroup *memcg; in lru_gen_test_recent()
381 void *workingset_eviction(struct folio *folio, struct mem_cgroup *target_memcg) in workingset_eviction()
419 struct mem_cgroup *eviction_memcg; in workingset_test_recent()
512 struct mem_cgroup *memcg; in workingset_refault()
569 struct mem_cgroup *memcg; in workingset_activation()
Dvmscan.c88 struct mem_cgroup *target_mem_cgroup;
208 static struct shrinker_info *shrinker_info_protected(struct mem_cgroup *memcg, in shrinker_info_protected()
215 static int expand_one_shrinker_info(struct mem_cgroup *memcg, in expand_one_shrinker_info()
259 void free_shrinker_info(struct mem_cgroup *memcg) in free_shrinker_info()
273 int alloc_shrinker_info(struct mem_cgroup *memcg) in alloc_shrinker_info()
306 struct mem_cgroup *memcg; in expand_shrinker_info()
335 void set_shrinker_bit(struct mem_cgroup *memcg, int nid, int shrinker_id) in set_shrinker_bit()
391 struct mem_cgroup *memcg) in xchg_nr_deferred_memcg()
400 struct mem_cgroup *memcg) in add_nr_deferred_memcg()
408 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.h493 struct mem_cgroup *memcg; in memcg_slab_pre_alloc_hook()
584 static inline struct mem_cgroup *memcg_from_slab_obj(void *ptr) in memcg_from_slab_obj()
Dbacking-dev.c578 struct mem_cgroup *memcg; in cgwb_create()
837 void wb_memcg_offline(struct mem_cgroup *memcg) in wb_memcg_offline()
/linux-6.6.21/include/linux/sched/
Dmm.h397 DECLARE_PER_CPU(struct mem_cgroup *, int_active_memcg);
409 static inline struct mem_cgroup *
410 set_active_memcg(struct mem_cgroup *memcg) in set_active_memcg()
412 struct mem_cgroup *old; in set_active_memcg()
425 static inline struct mem_cgroup *
426 set_active_memcg(struct mem_cgroup *memcg) in set_active_memcg()
/linux-6.6.21/arch/x86/kernel/cpu/sgx/
Dencl.c1000 static struct mem_cgroup *sgx_encl_get_mem_cgroup(struct sgx_encl *encl) in sgx_encl_get_mem_cgroup()
1002 struct mem_cgroup *memcg = NULL; in sgx_encl_get_mem_cgroup()
1065 struct mem_cgroup *encl_memcg = sgx_encl_get_mem_cgroup(encl); in sgx_encl_alloc_backing()
1066 struct mem_cgroup *memcg = set_active_memcg(encl_memcg); in sgx_encl_alloc_backing()
/linux-6.6.21/kernel/bpf/
Dmemalloc.c154 static struct mem_cgroup *get_memcg(const struct bpf_mem_cache *c) in get_memcg()
206 struct mem_cgroup *memcg = NULL, *old_memcg; in alloc_bulk()
920 struct mem_cgroup *memcg, *old_memcg; in bpf_mem_cache_alloc_flags()
/linux-6.6.21/fs/notify/inotify/
Dinotify_fsnotify.c70 struct mem_cgroup *old_memcg; in inotify_handle_inode_event()
/linux-6.6.21/mm/damon/
Dpaddr.c192 struct mem_cgroup *memcg; in __damos_pa_filter_out()

12