Lines Matching refs:obj_cgroup

269 static void obj_cgroup_uncharge_pages(struct obj_cgroup *objcg,
274 struct obj_cgroup *objcg = container_of(ref, struct obj_cgroup, refcnt); in obj_cgroup_release()
314 static struct obj_cgroup *obj_cgroup_alloc(void) in obj_cgroup_alloc()
316 struct obj_cgroup *objcg; in obj_cgroup_alloc()
319 objcg = kzalloc(sizeof(struct obj_cgroup), GFP_KERNEL); in obj_cgroup_alloc()
336 struct obj_cgroup *objcg, *iter; in memcg_reparent_objcgs()
756 static inline void mod_objcg_mlstate(struct obj_cgroup *objcg, in mod_objcg_mlstate()
2042 struct obj_cgroup *cached_objcg;
2751 static struct mem_cgroup *get_mem_cgroup_from_objcg(struct obj_cgroup *objcg) in get_mem_cgroup_from_objcg()
2781 vec = kcalloc_node(objects, sizeof(struct obj_cgroup *), gfp, in memcg_alloc_page_obj_cgroups()
2835 struct obj_cgroup *objcg; in mem_cgroup_from_obj()
2856 __always_inline struct obj_cgroup *get_obj_cgroup_from_current(void) in get_obj_cgroup_from_current()
2858 struct obj_cgroup *objcg = NULL; in get_obj_cgroup_from_current()
2929 static void obj_cgroup_uncharge_pages(struct obj_cgroup *objcg, in obj_cgroup_uncharge_pages()
2951 static int obj_cgroup_charge_pages(struct obj_cgroup *objcg, gfp_t gfp, in obj_cgroup_charge_pages()
2995 struct obj_cgroup *objcg; in __memcg_kmem_charge_page()
3018 struct obj_cgroup *objcg; in __memcg_kmem_uncharge_page()
3030 void mod_objcg_state(struct obj_cgroup *objcg, struct pglist_data *pgdat, in mod_objcg_state()
3090 static bool consume_obj_stock(struct obj_cgroup *objcg, unsigned int nr_bytes) in consume_obj_stock()
3108 struct obj_cgroup *old = stock->cached_objcg; in drain_obj_stock()
3176 static void refill_obj_stock(struct obj_cgroup *objcg, unsigned int nr_bytes, in refill_obj_stock()
3204 int obj_cgroup_charge(struct obj_cgroup *objcg, gfp_t gfp, size_t size) in obj_cgroup_charge()
3248 void obj_cgroup_uncharge(struct obj_cgroup *objcg, size_t size) in obj_cgroup_uncharge()
3590 struct obj_cgroup *objcg; in memcg_online_kmem()
6838 struct obj_cgroup *objcg; in uncharge_page()