Searched refs:objcg (Results 1 – 12 of 12) sorted by relevance
178 if (!objcg) in obj_cgroup_alloc()188 return objcg; in obj_cgroup_alloc()196 objcg = rcu_replace_pointer(memcg->objcg, NULL, true); in memcg_reparent_objcgs()2462 objcg = rcu_dereference(memcg->objcg); in __get_obj_cgroup_from_memcg()2463 if (likely(objcg && obj_cgroup_tryget(objcg))) in __get_obj_cgroup_from_memcg()2531 objcg = READ_ONCE(current->objcg); in current_obj_cgroup()2556 objcg = rcu_dereference_check(memcg->objcg, 1); in current_obj_cgroup()2989 slab_obj_exts(slab)[off].objcg = objcg; in __memcg_slab_post_alloc_hook()3005 objcg = obj_exts[off].objcg; in __memcg_slab_free_hook()3076 rcu_assign_pointer(memcg->objcg, objcg); in memcg_online_kmem()[all …]
202 struct obj_cgroup *objcg; member685 return entry->objcg ? obj_cgroup_memcg(entry->objcg) : NULL; in mem_cgroup_from_entry()800 if (entry->objcg) { in zswap_entry_free()802 obj_cgroup_put(entry->objcg); in zswap_entry_free()1055 if (entry->objcg) in zswap_writeback_entry()1427 if (objcg && !obj_cgroup_may_zswap(objcg)) { in zswap_store()1451 if (objcg) { in zswap_store()1464 entry->objcg = objcg; in zswap_store()1484 if (objcg) { in zswap_store()1517 obj_cgroup_put(objcg); in zswap_store()[all …]
1626 struct obj_cgroup *objcg; in pcpu_memcg_pre_alloc_hook() local1631 objcg = current_obj_cgroup(); in pcpu_memcg_pre_alloc_hook()1632 if (!objcg) in pcpu_memcg_pre_alloc_hook()1638 *objcgp = objcg; in pcpu_memcg_pre_alloc_hook()1646 if (!objcg) in pcpu_memcg_post_alloc_hook()1650 obj_cgroup_get(objcg); in pcpu_memcg_post_alloc_hook()1664 struct obj_cgroup *objcg; in pcpu_memcg_free_hook() local1670 if (!objcg) in pcpu_memcg_free_hook()1681 obj_cgroup_put(objcg); in pcpu_memcg_free_hook()1749 struct obj_cgroup *objcg = NULL; in pcpu_alloc_noprof() local[all …]
2216 if (unlikely(slab_exts[off].objcg)) in memcg_slab_post_charge()
252 struct obj_cgroup __rcu *objcg; member377 return READ_ONCE(objcg->memcg); in obj_cgroup_memcg()481 struct obj_cgroup *objcg; in folio_memcg_rcu() local484 return obj_cgroup_memcg(objcg); in folio_memcg_rcu()526 struct obj_cgroup *objcg; in folio_memcg_check() local816 percpu_ref_get(&objcg->refcnt); in obj_cgroup_get()827 if (objcg) in obj_cgroup_put()1522 struct obj_cgroup *objcg; member1716 if (objcg) in get_obj_cgroup_from_current()1717 obj_cgroup_get(objcg); in get_obj_cgroup_from_current()[all …]
14 struct obj_cgroup *objcg; member31 int bpf_mem_alloc_percpu_init(struct bpf_mem_alloc *ma, struct obj_cgroup *objcg);
1497 struct obj_cgroup *objcg; member
279 struct obj_cgroup *objcg; member
97 struct obj_cgroup *objcg; member161 if (c->objcg) in get_memcg()540 ma->objcg = objcg; in bpf_mem_alloc_init()545 c->objcg = objcg; in bpf_mem_alloc_init()561 ma->objcg = objcg; in bpf_mem_alloc_init()567 c->objcg = objcg; in bpf_mem_alloc_init()589 ma->objcg = objcg; in bpf_mem_alloc_percpu_init()598 struct obj_cgroup *objcg; in bpf_mem_alloc_percpu_unit_init() local609 objcg = ma->objcg; in bpf_mem_alloc_percpu_unit_init()619 c->objcg = objcg; in bpf_mem_alloc_percpu_unit_init()[all …]
397 map->objcg = get_obj_cgroup_from_current(); in bpf_map_save_memcg()402 if (map->objcg) in bpf_map_release_memcg()403 obj_cgroup_put(map->objcg); in bpf_map_release_memcg()408 if (map->objcg) in bpf_map_get_memcg()409 return get_mem_cgroup_from_objcg(map->objcg); in bpf_map_get_memcg()
186 obj_cgroups.add(memcg.objcg.value_())
1167 KFENCE_WARN_ON(meta->obj_exts.objcg); in __kfence_free()