/Linux-v6.1/include/linux/ |
D | memcontrol.h | 25 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 …]
|
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 | 365 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()
|
D | oom.h | 15 struct mem_cgroup; 37 struct mem_cgroup *memcg;
|
D | backing-dev.h | 150 void wb_memcg_offline(struct mem_cgroup *memcg); 354 static inline void wb_memcg_offline(struct mem_cgroup *memcg) in wb_memcg_offline()
|
D | shrinker.h | 33 struct mem_cgroup *memcg;
|
D | rmap.h | 358 struct mem_cgroup *memcg, unsigned long *vm_flags); 474 struct mem_cgroup *memcg, in folio_referenced()
|
D | mmzone.h | 482 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()
|
D | mm_types.h | 32 struct mem_cgroup; 715 struct mem_cgroup *memcg;
|
D | fsnotify_backend.h | 119 struct mem_cgroup; 232 struct mem_cgroup *memcg; /* memcg to charge allocations */
|
D | slab.h | 151 struct mem_cgroup;
|
/Linux-v6.1/mm/ |
D | memcontrol.c | 79 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 …]
|
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() 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()
|
D | workingset.c | 231 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()
|
D | vmscan.c | 85 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 …]
|
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 | 491 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()
|
D | backing-dev.c | 440 struct mem_cgroup *memcg; in cgwb_create() 702 void wb_memcg_offline(struct mem_cgroup *memcg) in wb_memcg_offline()
|
/Linux-v6.1/include/linux/sched/ |
D | mm.h | 365 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-v6.1/arch/x86/kernel/cpu/sgx/ |
D | encl.c | 963 static struct mem_cgroup *sgx_encl_get_mem_cgroup(struct sgx_encl *encl) in sgx_encl_get_mem_cgroup() 965 struct mem_cgroup *memcg = NULL; in sgx_encl_get_mem_cgroup() 1028 struct mem_cgroup *encl_memcg = sgx_encl_get_mem_cgroup(encl); in sgx_encl_alloc_backing() 1029 struct mem_cgroup *memcg = set_active_memcg(encl_memcg); in sgx_encl_alloc_backing()
|
/Linux-v6.1/fs/notify/inotify/ |
D | inotify_fsnotify.c | 70 struct mem_cgroup *old_memcg; in inotify_handle_inode_event()
|
/Linux-v6.1/kernel/bpf/ |
D | memalloc.c | 149 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()
|