/linux-6.6.21/include/linux/ |
D | memcontrol.h | 25 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 …]
|
D | vmpressure.h | 30 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()
|
D | list_lru.h | 16 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,
|
D | swap.h | 348 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()
|
D | mmzone.h | 554 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 …]
|
D | oom.h | 15 struct mem_cgroup; 37 struct mem_cgroup *memcg;
|
D | backing-dev.h | 159 void wb_memcg_offline(struct mem_cgroup *memcg); 363 static inline void wb_memcg_offline(struct mem_cgroup *memcg) in wb_memcg_offline()
|
D | shrinker.h | 36 struct mem_cgroup *memcg;
|
D | rmap.h | 369 struct mem_cgroup *memcg, unsigned long *vm_flags); 484 struct mem_cgroup *memcg, in folio_referenced()
|
D | fsnotify_backend.h | 119 struct mem_cgroup; 232 struct mem_cgroup *memcg; /* memcg to charge allocations */
|
D | mm_types.h | 33 struct mem_cgroup; 916 struct mem_cgroup *memcg;
|
/linux-6.6.21/mm/ |
D | memcontrol.c | 80 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 …]
|
D | list_lru.c | 65 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 …]
|
D | vmpressure.c | 77 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()
|
D | workingset.c | 242 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()
|
D | vmscan.c | 88 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 …]
|
D | shrinker_debug.c | 17 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()
|
D | mmap_lock.c | 202 struct mem_cgroup *memcg = get_mem_cgroup_from_mm(mm); in get_mm_memcg_path()
|
D | slab.h | 493 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()
|
D | backing-dev.c | 578 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/ |
D | mm.h | 397 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/ |
D | encl.c | 1000 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/ |
D | memalloc.c | 154 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/ |
D | inotify_fsnotify.c | 70 struct mem_cgroup *old_memcg; in inotify_handle_inode_event()
|
/linux-6.6.21/mm/damon/ |
D | paddr.c | 192 struct mem_cgroup *memcg; in __damos_pa_filter_out()
|