Lines Matching refs:p
414 struct rb_node **p = &mctz->rb_root.rb_node; in __mem_cgroup_insert_exceeded() local
425 while (*p) { in __mem_cgroup_insert_exceeded()
426 parent = *p; in __mem_cgroup_insert_exceeded()
430 p = &(*p)->rb_left; in __mem_cgroup_insert_exceeded()
433 p = &(*p)->rb_right; in __mem_cgroup_insert_exceeded()
440 rb_link_node(&mz->tree_node, parent, p); in __mem_cgroup_insert_exceeded()
875 void __mod_lruvec_kmem_state(void *p, enum node_stat_item idx, int val) in __mod_lruvec_kmem_state() argument
877 pg_data_t *pgdat = page_pgdat(virt_to_page(p)); in __mod_lruvec_kmem_state()
882 memcg = mem_cgroup_from_slab_obj(p); in __mod_lruvec_kmem_state()
999 struct mem_cgroup *mem_cgroup_from_task(struct task_struct *p) in mem_cgroup_from_task() argument
1006 if (unlikely(!p)) in mem_cgroup_from_task()
1009 return mem_cgroup_from_css(task_css(p, memory_cgrp_id)); in mem_cgroup_from_task()
1638 void mem_cgroup_print_oom_context(struct mem_cgroup *memcg, struct task_struct *p) in mem_cgroup_print_oom_context() argument
1647 if (p) { in mem_cgroup_print_oom_context()
1649 pr_cont_cgroup_path(task_cgroup(p, memory_cgrp_id)); in mem_cgroup_print_oom_context()
2924 struct mem_cgroup *mem_cgroup_from_obj_folio(struct folio *folio, void *p) in mem_cgroup_from_obj_folio() argument
2941 off = obj_to_index(slab->slab_cache, slab, p); in mem_cgroup_from_obj_folio()
2972 struct mem_cgroup *mem_cgroup_from_obj(void *p) in mem_cgroup_from_obj() argument
2979 if (unlikely(is_vmalloc_addr(p))) in mem_cgroup_from_obj()
2980 folio = page_folio(vmalloc_to_page(p)); in mem_cgroup_from_obj()
2982 folio = virt_to_folio(p); in mem_cgroup_from_obj()
2984 return mem_cgroup_from_obj_folio(folio, p); in mem_cgroup_from_obj()
2997 struct mem_cgroup *mem_cgroup_from_slab_obj(void *p) in mem_cgroup_from_slab_obj() argument
3002 return mem_cgroup_from_obj_folio(virt_to_folio(p), p); in mem_cgroup_from_slab_obj()
5006 static int mem_cgroup_slab_show(struct seq_file *m, void *p) in mem_cgroup_slab_show() argument
6158 struct task_struct *leader, *p; in mem_cgroup_can_attach() local
6173 p = NULL; in mem_cgroup_can_attach()
6175 WARN_ON_ONCE(p); in mem_cgroup_can_attach()
6176 p = leader; in mem_cgroup_can_attach()
6179 if (!p) in mem_cgroup_can_attach()
6191 from = mem_cgroup_from_task(p); in mem_cgroup_can_attach()
6195 mm = get_task_mm(p); in mem_cgroup_can_attach()
6199 if (mm->owner == p) { in mem_cgroup_can_attach()