Lines Matching refs:obj_cgroup
264 static void obj_cgroup_uncharge_pages(struct obj_cgroup *objcg,
269 struct obj_cgroup *objcg = container_of(ref, struct obj_cgroup, refcnt); in obj_cgroup_release()
309 static struct obj_cgroup *obj_cgroup_alloc(void) in obj_cgroup_alloc()
311 struct obj_cgroup *objcg; in obj_cgroup_alloc()
314 objcg = kzalloc(sizeof(struct obj_cgroup), GFP_KERNEL); in obj_cgroup_alloc()
331 struct obj_cgroup *objcg, *iter; in memcg_reparent_objcgs()
2083 struct obj_cgroup *cached_objcg;
2744 static struct mem_cgroup *get_mem_cgroup_from_objcg(struct obj_cgroup *objcg) in get_mem_cgroup_from_objcg()
2805 static inline void mod_objcg_mlstate(struct obj_cgroup *objcg, in mod_objcg_mlstate()
2827 vec = kcalloc_node(objects, sizeof(struct obj_cgroup *), gfp, in memcg_alloc_page_obj_cgroups()
2881 struct obj_cgroup *objcg; in mem_cgroup_from_obj()
2902 __always_inline struct obj_cgroup *get_obj_cgroup_from_current(void) in get_obj_cgroup_from_current()
2904 struct obj_cgroup *objcg = NULL; in get_obj_cgroup_from_current()
2975 static void obj_cgroup_uncharge_pages(struct obj_cgroup *objcg, in obj_cgroup_uncharge_pages()
2997 static int obj_cgroup_charge_pages(struct obj_cgroup *objcg, gfp_t gfp, in obj_cgroup_charge_pages()
3027 struct obj_cgroup *objcg; in __memcg_kmem_charge_page()
3051 struct obj_cgroup *objcg; in __memcg_kmem_uncharge_page()
3063 void mod_objcg_state(struct obj_cgroup *objcg, struct pglist_data *pgdat, in mod_objcg_state()
3123 static bool consume_obj_stock(struct obj_cgroup *objcg, unsigned int nr_bytes) in consume_obj_stock()
3141 struct obj_cgroup *old = stock->cached_objcg; in drain_obj_stock()
3209 static void refill_obj_stock(struct obj_cgroup *objcg, unsigned int nr_bytes, in refill_obj_stock()
3237 int obj_cgroup_charge(struct obj_cgroup *objcg, gfp_t gfp, size_t size) in obj_cgroup_charge()
3281 void obj_cgroup_uncharge(struct obj_cgroup *objcg, size_t size) in obj_cgroup_uncharge()
3615 struct obj_cgroup *objcg; in memcg_online_kmem()
6802 struct obj_cgroup *objcg; in uncharge_folio()