• Home
  • Raw
  • Download

Lines Matching refs:pn

363 	struct mem_cgroup_per_node *pn;  in memcg_free_shrinker_maps()  local
371 pn = mem_cgroup_nodeinfo(memcg, nid); in memcg_free_shrinker_maps()
372 map = rcu_dereference_protected(pn->shrinker_map, true); in memcg_free_shrinker_maps()
375 rcu_assign_pointer(pn->shrinker_map, NULL); in memcg_free_shrinker_maps()
713 parent_nodeinfo(struct mem_cgroup_per_node *pn, int nid) in parent_nodeinfo() argument
717 parent = parent_mem_cgroup(pn->memcg); in parent_nodeinfo()
737 struct mem_cgroup_per_node *pn; in __mod_lruvec_state() local
747 pn = container_of(lruvec, struct mem_cgroup_per_node, lruvec); in __mod_lruvec_state()
748 memcg = pn->memcg; in __mod_lruvec_state()
754 __this_cpu_add(pn->lruvec_stat_local->count[idx], val); in __mod_lruvec_state()
756 x = val + __this_cpu_read(pn->lruvec_stat_cpu->count[idx]); in __mod_lruvec_state()
760 for (pi = pn; pi; pi = parent_nodeinfo(pi, pgdat->node_id)) in __mod_lruvec_state()
764 __this_cpu_write(pn->lruvec_stat_cpu->count[idx], x); in __mod_lruvec_state()
2317 struct mem_cgroup_per_node *pn; in memcg_hotplug_cpu_dead() local
2319 pn = mem_cgroup_nodeinfo(memcg, nid); in memcg_hotplug_cpu_dead()
2320 x = this_cpu_xchg(pn->lruvec_stat_cpu->count[i], 0); in memcg_hotplug_cpu_dead()
2323 atomic_long_add(x, &pn->lruvec_stat[i]); in memcg_hotplug_cpu_dead()
2324 } while ((pn = parent_nodeinfo(pn, nid))); in memcg_hotplug_cpu_dead()
3422 struct mem_cgroup_per_node *pn = memcg->nodeinfo[node]; in memcg_flush_percpu_vmstats() local
3431 pn->lruvec_stat_cpu->count[i], cpu); in memcg_flush_percpu_vmstats()
3433 for (pi = pn; pi; pi = parent_nodeinfo(pi, node)) in memcg_flush_percpu_vmstats()
4953 struct mem_cgroup_per_node *pn; in alloc_mem_cgroup_per_node_info() local
4965 pn = kzalloc_node(sizeof(*pn), GFP_KERNEL, tmp); in alloc_mem_cgroup_per_node_info()
4966 if (!pn) in alloc_mem_cgroup_per_node_info()
4969 pn->lruvec_stat_local = alloc_percpu(struct lruvec_stat); in alloc_mem_cgroup_per_node_info()
4970 if (!pn->lruvec_stat_local) { in alloc_mem_cgroup_per_node_info()
4971 kfree(pn); in alloc_mem_cgroup_per_node_info()
4975 pn->lruvec_stat_cpu = alloc_percpu(struct lruvec_stat); in alloc_mem_cgroup_per_node_info()
4976 if (!pn->lruvec_stat_cpu) { in alloc_mem_cgroup_per_node_info()
4977 free_percpu(pn->lruvec_stat_local); in alloc_mem_cgroup_per_node_info()
4978 kfree(pn); in alloc_mem_cgroup_per_node_info()
4982 lruvec_init(&pn->lruvec); in alloc_mem_cgroup_per_node_info()
4983 pn->usage_in_excess = 0; in alloc_mem_cgroup_per_node_info()
4984 pn->on_tree = false; in alloc_mem_cgroup_per_node_info()
4985 pn->memcg = memcg; in alloc_mem_cgroup_per_node_info()
4987 memcg->nodeinfo[node] = pn; in alloc_mem_cgroup_per_node_info()
4993 struct mem_cgroup_per_node *pn = memcg->nodeinfo[node]; in free_mem_cgroup_per_node_info() local
4995 if (!pn) in free_mem_cgroup_per_node_info()
4998 free_percpu(pn->lruvec_stat_cpu); in free_mem_cgroup_per_node_info()
4999 free_percpu(pn->lruvec_stat_local); in free_mem_cgroup_per_node_info()
5000 kfree(pn); in free_mem_cgroup_per_node_info()