Home
last modified time | relevance | path

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

/mm/
Drmap.c86 static inline struct anon_vma *anon_vma_alloc(void) in anon_vma_alloc()
88 struct anon_vma *anon_vma; in anon_vma_alloc() local
90 anon_vma = kmem_cache_alloc(anon_vma_cachep, GFP_KERNEL); in anon_vma_alloc()
91 if (anon_vma) { in anon_vma_alloc()
92 atomic_set(&anon_vma->refcount, 1); in anon_vma_alloc()
93 anon_vma->num_children = 0; in anon_vma_alloc()
94 anon_vma->num_active_vmas = 0; in anon_vma_alloc()
95 anon_vma->parent = anon_vma; in anon_vma_alloc()
100 anon_vma->root = anon_vma; in anon_vma_alloc()
103 return anon_vma; in anon_vma_alloc()
[all …]
Dmmap.c418 struct anon_vma *anon_vma = vma->anon_vma; in validate_mm() local
421 if (anon_vma) { in validate_mm()
422 anon_vma_lock_read(anon_vma); in validate_mm()
425 anon_vma_unlock_read(anon_vma); in validate_mm()
553 anon_vma_interval_tree_remove(avc, &avc->anon_vma->rb_root); in anon_vma_interval_tree_pre_update_vma()
562 anon_vma_interval_tree_insert(avc, &avc->anon_vma->rb_root); in anon_vma_interval_tree_post_update_vma()
787 struct anon_vma *anon_vma = NULL; in __vma_adjust() local
841 if (remove_next == 2 && !next->anon_vma) in __vma_adjust()
870 if (exporter && exporter->anon_vma && !importer->anon_vma) { in __vma_adjust()
873 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()
2655 struct anon_vma *anon_vma = NULL; in split_huge_page_to_list() local
2677 anon_vma = page_get_anon_vma(head); in split_huge_page_to_list()
2678 if (!anon_vma) { in split_huge_page_to_list()
2684 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.c1004 struct anon_vma *anon_vma = NULL; in __unmap_and_move() local
1065 anon_vma = page_get_anon_vma(page); in __unmap_and_move()
1103 VM_BUG_ON_PAGE(PageAnon(page) && !PageKsm(page) && !anon_vma, in __unmap_and_move()
1120 if (anon_vma) in __unmap_and_move()
1121 put_anon_vma(anon_vma); in __unmap_and_move()
1261 struct anon_vma *anon_vma = NULL; in unmap_and_move_huge_page() local
1304 anon_vma = page_get_anon_vma(hpage); in unmap_and_move_huge_page()
1346 if (anon_vma) in unmap_and_move_huge_page()
1347 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.c210 vma->anon_vma, vma->vm_ops, vma->vm_pgoff, in dump_vma()
Dmprotect.c456 vma->anon_vma, vma->vm_file, pgoff, vma_policy(vma), in mprotect_fixup()
Dmlock.c543 *prev = vma_merge(mm, *prev, start, end, newflags, vma->anon_vma, in mlock_fixup()
Dutil.c774 struct anon_vma *page_anon_vma(struct page *page) in page_anon_vma()
Dmemory.c561 (void *)addr, READ_ONCE(vma->vm_flags), vma->anon_vma, mapping, index); in print_bad_pte()
1182 !src_vma->anon_vma) in copy_page_range()
2770 if (!vmf->vma->anon_vma) { in vmf_allows_speculation()
2789 !vmf->vma->anon_vma) { in vmf_allows_speculation()
5051 if (!vmf.vma->anon_vma) in ___handle_speculative_fault()
Dmadvise.c151 *prev = vma_merge(mm, *prev, start, end, new_flags, vma->anon_vma, in madvise_update_vma()
Dmemory-failure.c477 struct anon_vma *av; in collect_procs_anon()
Dmempolicy.c840 vma->anon_vma, vma->vm_file, pgoff, in mbind_range()
Dswapfile.c2127 if (vma->anon_vma) { in unuse_mm()