Home
last modified time | relevance | path

Searched refs:obj_cgroup (Results 1 – 11 of 11) sorted by relevance

/linux-6.1.9/include/linux/
Dmemcontrol.h26 struct obj_cgroup;
190 struct obj_cgroup { struct
294 struct obj_cgroup __rcu *objcg;
360 static inline struct mem_cgroup *obj_cgroup_memcg(struct obj_cgroup *objcg) in obj_cgroup_memcg()
396 static inline struct obj_cgroup *__folio_objcg(struct folio *folio) in __folio_objcg()
404 return (struct obj_cgroup *)(memcg_data & ~MEMCG_DATA_FLAGS_MASK); in __folio_objcg()
459 struct obj_cgroup *objcg; in folio_memcg_rcu()
502 struct obj_cgroup *objcg; in page_memcg_check()
511 static inline struct mem_cgroup *get_mem_cgroup_from_objcg(struct obj_cgroup *objcg) in get_mem_cgroup_from_objcg()
772 static inline bool obj_cgroup_tryget(struct obj_cgroup *objcg) in obj_cgroup_tryget()
[all …]
Dbpf.h227 struct obj_cgroup *objcg;
/linux-6.1.9/mm/
Dslab.h438 static inline struct obj_cgroup **slab_objcgs(struct slab *slab) in slab_objcgs()
446 return (struct obj_cgroup **)(memcg_data & ~MEMCG_DATA_FLAGS_MASK); in slab_objcgs()
451 void mod_objcg_state(struct obj_cgroup *objcg, struct pglist_data *pgdat,
466 return s->size + sizeof(struct obj_cgroup *); in obj_full_size()
474 struct obj_cgroup **objcgp, in memcg_slab_pre_alloc_hook()
477 struct obj_cgroup *objcg; in memcg_slab_pre_alloc_hook()
512 struct obj_cgroup *objcg, in memcg_slab_post_alloc_hook()
549 struct obj_cgroup **objcgs; in memcg_slab_free_hook()
560 struct obj_cgroup *objcg; in memcg_slab_free_hook()
577 static inline struct obj_cgroup **slab_objcgs(struct slab *slab) in slab_objcgs()
[all …]
Dpercpu-internal.h60 struct obj_cgroup **obj_cgroups; /* vector of object cgroups */
128 extra_size += size / PCPU_MIN_ALLOC_SIZE * sizeof(struct obj_cgroup *); in pcpu_obj_full_size()
Dmemcontrol.c256 static void obj_cgroup_uncharge_pages(struct obj_cgroup *objcg,
261 struct obj_cgroup *objcg = container_of(ref, struct obj_cgroup, refcnt); in obj_cgroup_release()
301 static struct obj_cgroup *obj_cgroup_alloc(void) in obj_cgroup_alloc()
303 struct obj_cgroup *objcg; in obj_cgroup_alloc()
306 objcg = kzalloc(sizeof(struct obj_cgroup), GFP_KERNEL); in obj_cgroup_alloc()
323 struct obj_cgroup *objcg, *iter; in memcg_reparent_objcgs()
2175 struct obj_cgroup *cached_objcg;
2192 static struct obj_cgroup *drain_obj_stock(struct memcg_stock_pcp *stock);
2198 static inline struct obj_cgroup *drain_obj_stock(struct memcg_stock_pcp *stock) in drain_obj_stock()
2269 struct obj_cgroup *old = NULL; in drain_local_stock()
[all …]
Dpercpu.c1473 sizeof(struct obj_cgroup *), gfp); in pcpu_alloc_chunk()
1627 struct obj_cgroup **objcgp) in pcpu_memcg_pre_alloc_hook()
1629 struct obj_cgroup *objcg; in pcpu_memcg_pre_alloc_hook()
1647 static void pcpu_memcg_post_alloc_hook(struct obj_cgroup *objcg, in pcpu_memcg_post_alloc_hook()
1669 struct obj_cgroup *objcg; in pcpu_memcg_free_hook()
1691 pcpu_memcg_pre_alloc_hook(size_t size, gfp_t gfp, struct obj_cgroup **objcgp) in pcpu_memcg_pre_alloc_hook()
1696 static void pcpu_memcg_post_alloc_hook(struct obj_cgroup *objcg, in pcpu_memcg_post_alloc_hook()
1728 struct obj_cgroup *objcg = NULL; in pcpu_alloc()
Dzswap.c191 struct obj_cgroup *objcg;
1104 struct obj_cgroup *objcg = NULL; in zswap_frontswap_store()
Dslab.c3237 struct obj_cgroup *objcg = NULL; in slab_alloc_node()
3486 struct obj_cgroup *objcg = NULL; in kmem_cache_alloc_bulk()
Dslub.c3315 struct obj_cgroup *objcg = NULL; in slab_alloc_node()
3791 struct obj_cgroup *objcg = NULL; in kmem_cache_alloc_bulk()
/linux-6.1.9/mm/kfence/
Dkfence.h93 struct obj_cgroup *objcg;
/linux-6.1.9/kernel/bpf/
Dmemalloc.c95 struct obj_cgroup *objcg;
362 struct obj_cgroup *objcg = NULL; in bpf_mem_alloc_init()