Home
last modified time | relevance | path

Searched refs:parent (Results 1 – 17 of 17) sorted by relevance

/mm/
Dinterval_tree.c33 struct vm_area_struct *parent; in vma_interval_tree_insert_after() local
39 parent = prev; in vma_interval_tree_insert_after()
42 parent = rb_entry(prev->shared.rb.rb_right, in vma_interval_tree_insert_after()
44 if (parent->shared.rb_subtree_last < last) in vma_interval_tree_insert_after()
45 parent->shared.rb_subtree_last = last; in vma_interval_tree_insert_after()
46 while (parent->shared.rb.rb_left) { in vma_interval_tree_insert_after()
47 parent = rb_entry(parent->shared.rb.rb_left, in vma_interval_tree_insert_after()
49 if (parent->shared.rb_subtree_last < last) in vma_interval_tree_insert_after()
50 parent->shared.rb_subtree_last = last; in vma_interval_tree_insert_after()
52 link = &parent->shared.rb.rb_left; in vma_interval_tree_insert_after()
[all …]
Dpage_counter.c22 if (!c->parent) in propagate_protected_usage()
34 atomic_long_add(delta, &c->parent->children_min_usage); in propagate_protected_usage()
46 atomic_long_add(delta, &c->parent->children_low_usage); in propagate_protected_usage()
76 for (c = counter; c; c = c->parent) { in page_counter_charge()
105 for (c = counter; c; c = c->parent) { in page_counter_try_charge()
144 for (c = counter; c != *fail; c = c->parent) in page_counter_try_charge()
159 for (c = counter; c; c = c->parent) in page_counter_uncharge()
218 for (c = counter; c; c = c->parent) in page_counter_set_min()
235 for (c = counter; c; c = c->parent) in page_counter_set_low()
Dhugetlb_cgroup.c56 return hugetlb_cgroup_from_css(h_cg->css.parent); in parent_hugetlb_cgroup()
77 struct page_counter *parent = NULL; in hugetlb_cgroup_init() local
82 parent = &parent_h_cgroup->hugepage[idx]; in hugetlb_cgroup_init()
83 page_counter_init(counter, parent); in hugetlb_cgroup_init()
131 struct hugetlb_cgroup *parent = parent_hugetlb_cgroup(h_cg); in hugetlb_cgroup_move_parent() local
143 if (!parent) { in hugetlb_cgroup_move_parent()
144 parent = root_h_cgroup; in hugetlb_cgroup_move_parent()
146 page_counter_charge(&parent->hugepage[idx], nr_pages); in hugetlb_cgroup_move_parent()
152 set_hugetlb_cgroup(page, parent); in hugetlb_cgroup_move_parent()
Dbacking-dev.c408 struct rb_node **node, *parent; in wb_congested_get_create() local
414 parent = NULL; in wb_congested_get_create()
417 parent = *node; in wb_congested_get_create()
418 congested = rb_entry(parent, struct bdi_writeback_congested, in wb_congested_get_create()
421 node = &parent->rb_left; in wb_congested_get_create()
423 node = &parent->rb_right; in wb_congested_get_create()
431 rb_link_node(&congested->rb_node, parent, node); in wb_congested_get_create()
648 if (!memcg_css->parent) in wb_get_lookup()
684 if (!memcg_css->parent) in wb_get_create()
887 struct rb_node *parent = NULL; in bdi_lookup_rb_node() local
[all …]
Dvmalloc.c439 struct rb_node **parent) in find_va_links() argument
447 *parent = NULL; in find_va_links()
477 *parent = &tmp_va->rb_node; in find_va_links()
482 get_va_next_sibling(struct rb_node *parent, struct rb_node **link) in get_va_next_sibling() argument
486 if (unlikely(!parent)) in get_va_next_sibling()
495 list = &rb_entry(parent, struct vmap_area, rb_node)->list; in get_va_next_sibling()
496 return (&parent->rb_right == link ? list->next : list); in get_va_next_sibling()
501 struct rb_node *parent, struct rb_node **link, struct list_head *head) in link_va() argument
507 if (likely(parent)) { in link_va()
508 head = &rb_entry(parent, struct vmap_area, rb_node)->list; in link_va()
[all …]
Dnommu.c488 struct rb_node **p, *parent; in add_nommu_region() local
492 parent = NULL; in add_nommu_region()
495 parent = *p; in add_nommu_region()
496 pregion = rb_entry(parent, struct vm_region, vm_rb); in add_nommu_region()
507 rb_link_node(&region->vm_rb, parent, p); in add_nommu_region()
586 struct rb_node **p, *parent, *rb_prev; in add_vma_to_mm() local
605 parent = rb_prev = NULL; in add_vma_to_mm()
608 parent = *p; in add_vma_to_mm()
609 pvma = rb_entry(parent, struct vm_area_struct, vm_rb); in add_vma_to_mm()
616 rb_prev = parent; in add_vma_to_mm()
[all …]
Dmemcontrol.c526 struct rb_node *parent = NULL; in __mem_cgroup_insert_exceeded() local
537 parent = *p; in __mem_cgroup_insert_exceeded()
538 mz_node = rb_entry(parent, struct mem_cgroup_per_node, in __mem_cgroup_insert_exceeded()
556 rb_link_node(&mz->tree_node, parent, p); in __mem_cgroup_insert_exceeded()
715 struct mem_cgroup *parent; in parent_nodeinfo() local
717 parent = parent_mem_cgroup(pn->memcg); in parent_nodeinfo()
718 if (!parent) in parent_nodeinfo()
720 return mem_cgroup_nodeinfo(parent, nid); in parent_nodeinfo()
3313 struct mem_cgroup *parent_memcg = mem_cgroup_from_css(memcg->css.parent); in mem_cgroup_hierarchy_write()
3490 struct mem_cgroup *parent, *child; in memcg_offline_kmem() local
[all …]
Dksm.c1556 struct rb_node *parent; in stable_tree_search() local
1571 parent = NULL; in stable_tree_search()
1634 parent = *new; in stable_tree_search()
1636 new = &parent->rb_left; in stable_tree_search()
1638 new = &parent->rb_right; in stable_tree_search()
1703 rb_link_node(&page_node->node, parent, new); in stable_tree_search()
1809 struct rb_node *parent; in stable_tree_insert() local
1817 parent = NULL; in stable_tree_insert()
1869 parent = *new; in stable_tree_insert()
1871 new = &parent->rb_left; in stable_tree_insert()
[all …]
Dkmemleak.c574 struct kmemleak_object *object, *parent; in create_object() local
629 parent = rb_entry(rb_parent, struct kmemleak_object, rb_node); in create_object()
630 if (ptr + size <= parent->pointer) in create_object()
631 link = &parent->rb_node.rb_left; in create_object()
632 else if (parent->pointer + parent->size <= ptr) in create_object()
633 link = &parent->rb_node.rb_right; in create_object()
641 dump_object_info(parent); in create_object()
Dslab.c226 static void kmem_cache_node_init(struct kmem_cache_node *parent) in kmem_cache_node_init() argument
228 INIT_LIST_HEAD(&parent->slabs_full); in kmem_cache_node_init()
229 INIT_LIST_HEAD(&parent->slabs_partial); in kmem_cache_node_init()
230 INIT_LIST_HEAD(&parent->slabs_free); in kmem_cache_node_init()
231 parent->total_slabs = 0; in kmem_cache_node_init()
232 parent->free_slabs = 0; in kmem_cache_node_init()
233 parent->shared = NULL; in kmem_cache_node_init()
234 parent->alien = NULL; in kmem_cache_node_init()
235 parent->colour_next = 0; in kmem_cache_node_init()
236 spin_lock_init(&parent->list_lock); in kmem_cache_node_init()
[all …]
Dzswap.c291 struct rb_node **link = &root->rb_node, *parent = NULL; in zswap_rb_insert() local
295 parent = *link; in zswap_rb_insert()
296 myentry = rb_entry(parent, struct zswap_entry, rbnode); in zswap_rb_insert()
306 rb_link_node(&entry->rbnode, parent, link); in zswap_rb_insert()
Dslab_common.c793 struct mem_cgroup *parent) in memcg_deactivate_kmem_caches() argument
819 WRITE_ONCE(s->memcg_params.memcg, parent); in memcg_deactivate_kmem_caches()
825 &parent->kmem_caches); in memcg_deactivate_kmem_caches()
826 css_get_many(&parent->css, nr_reparented); in memcg_deactivate_kmem_caches()
Drmap.c87 anon_vma->parent = anon_vma; in anon_vma_alloc()
354 anon_vma->parent = pvma->anon_vma; in anon_vma_fork()
365 anon_vma->parent->degree++; in anon_vma_fork()
397 anon_vma->parent->degree--; in unlink_anon_vmas()
Dswapfile.c2314 struct rb_node **link = &sis->swap_extent_root.rb_node, *parent = NULL; in add_swap_extent() local
2323 parent = *link; in add_swap_extent()
2324 link = &parent->rb_right; in add_swap_extent()
2327 if (parent) { in add_swap_extent()
2328 se = rb_entry(parent, struct swap_extent, rb_node); in add_swap_extent()
2345 rb_link_node(&new_se->rb_node, parent, link); in add_swap_extent()
Dmempolicy.c2325 struct rb_node *parent = NULL; in sp_insert() local
2329 parent = *p; in sp_insert()
2330 nd = rb_entry(parent, struct sp_node, nd); in sp_insert()
2338 rb_link_node(&new->nd, parent, p); in sp_insert()
Dhugetlb.c2765 static int hugetlb_sysfs_add_hstate(struct hstate *h, struct kobject *parent, in hugetlb_sysfs_add_hstate() argument
2772 hstate_kobjs[hi] = kobject_create_and_add(h->name, parent); in hugetlb_sysfs_add_hstate()
Dshmem.c3338 struct inode *parent) in shmem_encode_fh() argument