Lines Matching refs:obj_cgroup

256 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()
2863 static inline void mod_objcg_mlstate(struct obj_cgroup *objcg, in mod_objcg_mlstate()
2885 vec = kcalloc_node(objects, sizeof(struct obj_cgroup *), gfp, in memcg_alloc_slab_cgroups()
2921 struct obj_cgroup **objcgs; in mem_cgroup_from_obj_folio()
2994 static struct obj_cgroup *__get_obj_cgroup_from_memcg(struct mem_cgroup *memcg) in __get_obj_cgroup_from_memcg()
2996 struct obj_cgroup *objcg = NULL; in __get_obj_cgroup_from_memcg()
3007 __always_inline struct obj_cgroup *get_obj_cgroup_from_current(void) in get_obj_cgroup_from_current()
3009 struct obj_cgroup *objcg = NULL; in get_obj_cgroup_from_current()
3025 struct obj_cgroup *get_obj_cgroup_from_page(struct page *page) in get_obj_cgroup_from_page()
3027 struct obj_cgroup *objcg; in get_obj_cgroup_from_page()
3066 static void obj_cgroup_uncharge_pages(struct obj_cgroup *objcg, in obj_cgroup_uncharge_pages()
3087 static int obj_cgroup_charge_pages(struct obj_cgroup *objcg, gfp_t gfp, in obj_cgroup_charge_pages()
3116 struct obj_cgroup *objcg; in __memcg_kmem_charge_page()
3140 struct obj_cgroup *objcg; in __memcg_kmem_uncharge_page()
3152 void mod_objcg_state(struct obj_cgroup *objcg, struct pglist_data *pgdat, in mod_objcg_state()
3156 struct obj_cgroup *old = NULL; in mod_objcg_state()
3218 static bool consume_obj_stock(struct obj_cgroup *objcg, unsigned int nr_bytes) in consume_obj_stock()
3237 static struct obj_cgroup *drain_obj_stock(struct memcg_stock_pcp *stock) in drain_obj_stock()
3239 struct obj_cgroup *old = stock->cached_objcg; in drain_obj_stock()
3314 static void refill_obj_stock(struct obj_cgroup *objcg, unsigned int nr_bytes, in refill_obj_stock()
3318 struct obj_cgroup *old = NULL; in refill_obj_stock()
3348 int obj_cgroup_charge(struct obj_cgroup *objcg, gfp_t gfp, size_t size) in obj_cgroup_charge()
3392 void obj_cgroup_uncharge(struct obj_cgroup *objcg, size_t size) in obj_cgroup_uncharge()
3723 struct obj_cgroup *objcg; in memcg_online_kmem()
7025 struct obj_cgroup *objcg; in uncharge_folio()
7653 bool obj_cgroup_may_zswap(struct obj_cgroup *objcg) in obj_cgroup_may_zswap()
7693 void obj_cgroup_charge_zswap(struct obj_cgroup *objcg, size_t size) in obj_cgroup_charge_zswap()
7720 void obj_cgroup_uncharge_zswap(struct obj_cgroup *objcg, size_t size) in obj_cgroup_uncharge_zswap()