• Home
  • Raw
  • Download

Lines Matching refs:objcg

1585 	struct obj_cgroup *objcg;  in pcpu_memcg_pre_alloc_hook()  local
1590 objcg = get_obj_cgroup_from_current(); in pcpu_memcg_pre_alloc_hook()
1591 if (!objcg) in pcpu_memcg_pre_alloc_hook()
1594 if (obj_cgroup_charge(objcg, gfp, size * num_possible_cpus())) { in pcpu_memcg_pre_alloc_hook()
1595 obj_cgroup_put(objcg); in pcpu_memcg_pre_alloc_hook()
1599 *objcgp = objcg; in pcpu_memcg_pre_alloc_hook()
1603 static void pcpu_memcg_post_alloc_hook(struct obj_cgroup *objcg, in pcpu_memcg_post_alloc_hook() argument
1607 if (!objcg) in pcpu_memcg_post_alloc_hook()
1611 chunk->obj_cgroups[off >> PCPU_MIN_ALLOC_SHIFT] = objcg; in pcpu_memcg_post_alloc_hook()
1614 mod_memcg_state(obj_cgroup_memcg(objcg), MEMCG_PERCPU_B, in pcpu_memcg_post_alloc_hook()
1618 obj_cgroup_uncharge(objcg, size * num_possible_cpus()); in pcpu_memcg_post_alloc_hook()
1619 obj_cgroup_put(objcg); in pcpu_memcg_post_alloc_hook()
1625 struct obj_cgroup *objcg; in pcpu_memcg_free_hook() local
1630 objcg = chunk->obj_cgroups[off >> PCPU_MIN_ALLOC_SHIFT]; in pcpu_memcg_free_hook()
1633 obj_cgroup_uncharge(objcg, size * num_possible_cpus()); in pcpu_memcg_free_hook()
1636 mod_memcg_state(obj_cgroup_memcg(objcg), MEMCG_PERCPU_B, in pcpu_memcg_free_hook()
1640 obj_cgroup_put(objcg); in pcpu_memcg_free_hook()
1650 static void pcpu_memcg_post_alloc_hook(struct obj_cgroup *objcg, in pcpu_memcg_post_alloc_hook() argument
1684 struct obj_cgroup *objcg = NULL; in pcpu_alloc() local
1719 type = pcpu_memcg_pre_alloc_hook(size, gfp, &objcg); in pcpu_alloc()
1733 pcpu_memcg_post_alloc_hook(objcg, NULL, 0, size); in pcpu_alloc()
1847 pcpu_memcg_post_alloc_hook(objcg, chunk, off, size); in pcpu_alloc()
1871 pcpu_memcg_post_alloc_hook(objcg, NULL, 0, size); in pcpu_alloc()