Lines Matching refs:anon_vma
200 struct anon_vma *anon_vma; /* when stable */ member
562 if (!vma || !(vma->vm_flags & VM_MERGEABLE) || !vma->anon_vma) in find_mergeable_vma()
577 put_anon_vma(rmap_item->anon_vma); in break_cow()
687 put_anon_vma(rmap_item->anon_vma); in remove_node_from_stable_tree()
839 put_anon_vma(rmap_item->anon_vma); in remove_rmap_item_from_tree()
1043 if (!(vma->vm_flags & VM_MERGEABLE) || !vma->anon_vma) in unmerge_and_remove_all_rmap_items()
1374 rmap_item->anon_vma = vma->anon_vma; in try_to_merge_with_ksm_page()
1375 get_anon_vma(vma->anon_vma); in try_to_merge_with_ksm_page()
2390 if (!vma->anon_vma) in scan_get_next_rmap_item()
2555 if (vma->anon_vma) { in __ksm_del_vma()
2693 if (vma->anon_vma) { in ksm_madvise()
2797 struct anon_vma *anon_vma = folio_anon_vma(folio); in ksm_might_need_to_copy() local
2804 } else if (!anon_vma) { in ksm_might_need_to_copy()
2807 anon_vma->root == vma->anon_vma->root) { in ksm_might_need_to_copy()
2857 struct anon_vma *anon_vma = rmap_item->anon_vma; in rmap_walk_ksm() local
2862 if (!anon_vma_trylock_read(anon_vma)) { in rmap_walk_ksm()
2867 anon_vma_lock_read(anon_vma); in rmap_walk_ksm()
2869 anon_vma_interval_tree_foreach(vmac, &anon_vma->rb_root, in rmap_walk_ksm()
2894 anon_vma_unlock_read(anon_vma); in rmap_walk_ksm()
2898 anon_vma_unlock_read(anon_vma); in rmap_walk_ksm()
2902 anon_vma_unlock_read(anon_vma); in rmap_walk_ksm()
2925 struct anon_vma *av = rmap_item->anon_vma; in collect_procs_ksm()