Lines Matching refs:obj_cgroup

260 static void obj_cgroup_uncharge_pages(struct obj_cgroup *objcg,
265 struct obj_cgroup *objcg = container_of(ref, struct obj_cgroup, refcnt); in obj_cgroup_release()
305 static struct obj_cgroup *obj_cgroup_alloc(void) in obj_cgroup_alloc()
307 struct obj_cgroup *objcg; in obj_cgroup_alloc()
310 objcg = kzalloc(sizeof(struct obj_cgroup), GFP_KERNEL); in obj_cgroup_alloc()
327 struct obj_cgroup *objcg, *iter; in memcg_reparent_objcgs()
2185 struct obj_cgroup *cached_objcg;
2202 static struct obj_cgroup *drain_obj_stock(struct memcg_stock_pcp *stock);
2208 static inline struct obj_cgroup *drain_obj_stock(struct memcg_stock_pcp *stock) in drain_obj_stock()
2279 struct obj_cgroup *old = NULL; in drain_local_stock()
2873 static inline void mod_objcg_mlstate(struct obj_cgroup *objcg, in mod_objcg_mlstate()
2895 vec = kcalloc_node(objects, sizeof(struct obj_cgroup *), gfp, in memcg_alloc_slab_cgroups()
2931 struct obj_cgroup **objcgs; in mem_cgroup_from_obj_folio()
3004 static struct obj_cgroup *__get_obj_cgroup_from_memcg(struct mem_cgroup *memcg) in __get_obj_cgroup_from_memcg()
3006 struct obj_cgroup *objcg = NULL; in __get_obj_cgroup_from_memcg()
3017 __always_inline struct obj_cgroup *get_obj_cgroup_from_current(void) in get_obj_cgroup_from_current()
3019 struct obj_cgroup *objcg = NULL; in get_obj_cgroup_from_current()
3035 struct obj_cgroup *get_obj_cgroup_from_folio(struct folio *folio) in get_obj_cgroup_from_folio()
3037 struct obj_cgroup *objcg; in get_obj_cgroup_from_folio()
3076 static void obj_cgroup_uncharge_pages(struct obj_cgroup *objcg, in obj_cgroup_uncharge_pages()
3097 static int obj_cgroup_charge_pages(struct obj_cgroup *objcg, gfp_t gfp, in obj_cgroup_charge_pages()
3126 struct obj_cgroup *objcg; in __memcg_kmem_charge_page()
3150 struct obj_cgroup *objcg; in __memcg_kmem_uncharge_page()
3162 void mod_objcg_state(struct obj_cgroup *objcg, struct pglist_data *pgdat, in mod_objcg_state()
3166 struct obj_cgroup *old = NULL; in mod_objcg_state()
3228 static bool consume_obj_stock(struct obj_cgroup *objcg, unsigned int nr_bytes) in consume_obj_stock()
3247 static struct obj_cgroup *drain_obj_stock(struct memcg_stock_pcp *stock) in drain_obj_stock()
3249 struct obj_cgroup *old = READ_ONCE(stock->cached_objcg); in drain_obj_stock()
3313 struct obj_cgroup *objcg = READ_ONCE(stock->cached_objcg); in obj_stock_flush_required()
3325 static void refill_obj_stock(struct obj_cgroup *objcg, unsigned int nr_bytes, in refill_obj_stock()
3329 struct obj_cgroup *old = NULL; in refill_obj_stock()
3359 int obj_cgroup_charge(struct obj_cgroup *objcg, gfp_t gfp, size_t size) in obj_cgroup_charge()
3403 void obj_cgroup_uncharge(struct obj_cgroup *objcg, size_t size) in obj_cgroup_uncharge()
3750 struct obj_cgroup *objcg; in memcg_online_kmem()
7131 struct obj_cgroup *objcg; in uncharge_folio()
7770 bool obj_cgroup_may_zswap(struct obj_cgroup *objcg) in obj_cgroup_may_zswap()
7810 void obj_cgroup_charge_zswap(struct obj_cgroup *objcg, size_t size) in obj_cgroup_charge_zswap()
7837 void obj_cgroup_uncharge_zswap(struct obj_cgroup *objcg, size_t size) in obj_cgroup_uncharge_zswap()