Lines Matching refs:obj_cgroup
257 struct obj_cgroup *objcg = container_of(ref, struct obj_cgroup, refcnt); in obj_cgroup_release()
299 static struct obj_cgroup *obj_cgroup_alloc(void) in obj_cgroup_alloc()
301 struct obj_cgroup *objcg; in obj_cgroup_alloc()
304 objcg = kzalloc(sizeof(struct obj_cgroup), GFP_KERNEL); in obj_cgroup_alloc()
321 struct obj_cgroup *objcg, *iter; in memcg_reparent_objcgs()
2211 struct obj_cgroup *cached_objcg;
2911 vec = kcalloc_node(objects, sizeof(struct obj_cgroup *), gfp, in memcg_alloc_page_obj_cgroups()
2917 (struct obj_cgroup **) ((unsigned long)vec | 0x1UL))) in memcg_alloc_page_obj_cgroups()
2957 struct obj_cgroup *objcg; in mem_cgroup_from_obj()
2972 __always_inline struct obj_cgroup *get_obj_cgroup_from_current(void) in get_obj_cgroup_from_current()
2974 struct obj_cgroup *objcg = NULL; in get_obj_cgroup_from_current()
3139 static bool consume_obj_stock(struct obj_cgroup *objcg, unsigned int nr_bytes) in consume_obj_stock()
3160 struct obj_cgroup *old = stock->cached_objcg; in drain_obj_stock()
3207 static void refill_obj_stock(struct obj_cgroup *objcg, unsigned int nr_bytes) in refill_obj_stock()
3229 int obj_cgroup_charge(struct obj_cgroup *objcg, gfp_t gfp, size_t size) in obj_cgroup_charge()
3267 void obj_cgroup_uncharge(struct obj_cgroup *objcg, size_t size) in obj_cgroup_uncharge()
3692 struct obj_cgroup *objcg; in memcg_online_kmem()