Home
last modified time | relevance | path

Searched refs:anon_vma (Results 1 – 16 of 16) sorted by relevance

/mm/
Drmap.c87 static inline struct anon_vma *anon_vma_alloc(void) in anon_vma_alloc()
89 struct anon_vma *anon_vma; in anon_vma_alloc() local
91 anon_vma = kmem_cache_alloc(anon_vma_cachep, GFP_KERNEL); in anon_vma_alloc()
92 if (anon_vma) { in anon_vma_alloc()
93 atomic_set(&anon_vma->refcount, 1); in anon_vma_alloc()
94 anon_vma->num_children = 0; in anon_vma_alloc()
95 anon_vma->num_active_vmas = 0; in anon_vma_alloc()
96 anon_vma->parent = anon_vma; in anon_vma_alloc()
101 anon_vma->root = anon_vma; in anon_vma_alloc()
104 return anon_vma; in anon_vma_alloc()
[all …]
Dmmap.c417 struct anon_vma *anon_vma = vma->anon_vma; in validate_mm() local
420 if (anon_vma) { in validate_mm()
421 anon_vma_lock_read(anon_vma); in validate_mm()
424 anon_vma_unlock_read(anon_vma); in validate_mm()
552 anon_vma_interval_tree_remove(avc, &avc->anon_vma->rb_root); in anon_vma_interval_tree_pre_update_vma()
561 anon_vma_interval_tree_insert(avc, &avc->anon_vma->rb_root); in anon_vma_interval_tree_post_update_vma()
786 struct anon_vma *anon_vma = NULL; in __vma_adjust() local
840 if (remove_next == 2 && !next->anon_vma) in __vma_adjust()
869 if (exporter && exporter->anon_vma && !importer->anon_vma) { in __vma_adjust()
872 importer->anon_vma = exporter->anon_vma; in __vma_adjust()
[all …]
Dksm.c198 struct anon_vma *anon_vma; /* when stable */ member
529 if (!(vma->vm_flags & VM_MERGEABLE) || !vma->anon_vma) in find_mergeable_vma()
544 put_anon_vma(rmap_item->anon_vma); in break_cow()
646 put_anon_vma(rmap_item->anon_vma); in remove_node_from_stable_tree()
796 put_anon_vma(rmap_item->anon_vma); in remove_rmap_item_from_tree()
985 if (!(vma->vm_flags & VM_MERGEABLE) || !vma->anon_vma) in unmerge_and_remove_all_rmap_items()
1298 rmap_item->anon_vma = vma->anon_vma; in try_to_merge_with_ksm_page()
1299 get_anon_vma(vma->anon_vma); in try_to_merge_with_ksm_page()
2301 if (!vma->anon_vma) in scan_get_next_rmap_item()
2479 if (vma->anon_vma) { in ksm_madvise()
[all …]
Dhuge_memory.c1278 VM_BUG_ON_VMA(!vma->anon_vma, vma); in do_huge_pmd_wp_page()
1414 struct anon_vma *anon_vma = NULL; in do_huge_pmd_numa_page() local
1484 anon_vma = page_lock_anon_vma_read(page, NULL); in do_huge_pmd_numa_page()
1496 if (unlikely(!anon_vma)) { in do_huge_pmd_numa_page()
1557 if (anon_vma) in do_huge_pmd_numa_page()
1558 page_unlock_anon_vma_read(anon_vma); in do_huge_pmd_numa_page()
2667 struct anon_vma *anon_vma = NULL; in split_huge_page_to_list() local
2689 anon_vma = page_get_anon_vma(head); in split_huge_page_to_list()
2690 if (!anon_vma) { in split_huge_page_to_list()
2696 anon_vma_lock_write(anon_vma); in split_huge_page_to_list()
[all …]
Dkhugepaged.c467 if (!vma->anon_vma || vma->vm_ops) in hugepage_vma_check()
993 if (!vma->anon_vma || vma->vm_ops) in hugepage_vma_revalidate()
1143 anon_vma_lock_write(vma->anon_vma); in collapse_huge_page()
1182 anon_vma_unlock_write(vma->anon_vma); in collapse_huge_page()
1192 anon_vma_unlock_write(vma->anon_vma); in collapse_huge_page()
1545 if (vma->anon_vma) in collapse_pte_mapped_thp()
1546 anon_vma_lock_write(vma->anon_vma); in collapse_pte_mapped_thp()
1558 if (vma->anon_vma) in collapse_pte_mapped_thp()
1559 anon_vma_unlock_write(vma->anon_vma); in collapse_pte_mapped_thp()
1623 if (vma->anon_vma) in retract_page_tables()
Dmigrate.c1011 struct anon_vma *anon_vma = NULL; in __unmap_and_move() local
1072 anon_vma = page_get_anon_vma(page); in __unmap_and_move()
1110 VM_BUG_ON_PAGE(PageAnon(page) && !PageKsm(page) && !anon_vma, in __unmap_and_move()
1127 if (anon_vma) in __unmap_and_move()
1128 put_anon_vma(anon_vma); in __unmap_and_move()
1268 struct anon_vma *anon_vma = NULL; in unmap_and_move_huge_page() local
1311 anon_vma = page_get_anon_vma(hpage); in unmap_and_move_huge_page()
1353 if (anon_vma) in unmap_and_move_huge_page()
1354 put_anon_vma(anon_vma); in unmap_and_move_huge_page()
Dmremap.c107 if (vma->anon_vma) in take_rmap_locks()
108 anon_vma_lock_write(vma->anon_vma); in take_rmap_locks()
113 if (vma->anon_vma) in drop_rmap_locks()
114 anon_vma_unlock_write(vma->anon_vma); in drop_rmap_locks()
Ddebug.c211 vma->anon_vma, vma->vm_ops, vma->vm_pgoff, in dump_vma()
Dmlock.c551 *prev = vma_merge(mm, *prev, start, end, newflags, vma->anon_vma, in mlock_fixup()
Dmprotect.c456 vma->anon_vma, vma->vm_file, pgoff, vma_policy(vma), in mprotect_fixup()
Dutil.c781 struct anon_vma *page_anon_vma(struct page *page) in page_anon_vma()
Dmemory.c586 (void *)addr, READ_ONCE(vma->vm_flags), vma->anon_vma, mapping, index); in print_bad_pte()
1207 !src_vma->anon_vma) in copy_page_range()
2790 if (!vmf->vma->anon_vma) { in vmf_allows_speculation()
2809 !vmf->vma->anon_vma) { in vmf_allows_speculation()
5073 if (!vmf.vma->anon_vma) in ___handle_speculative_fault()
Dmadvise.c139 *prev = vma_merge(mm, *prev, start, end, new_flags, vma->anon_vma, in madvise_behavior()
Dmemory-failure.c477 struct anon_vma *av; in collect_procs_anon()
Dmempolicy.c840 vma->anon_vma, vma->vm_file, pgoff, in mbind_range()
Dswapfile.c2150 if (vma->anon_vma) { in unuse_mm()