Home
last modified time | relevance | path

Searched refs:dst_vma (Results 1 – 11 of 11) sorted by relevance

/Linux-v6.6/mm/
Duserfaultfd.c31 struct vm_area_struct *dst_vma; in find_dst_vma() local
33 dst_vma = find_vma(dst_mm, dst_start); in find_dst_vma()
34 if (!range_in_vma(dst_vma, dst_start, dst_start + len)) in find_dst_vma()
42 if (!dst_vma->vm_userfaultfd_ctx.ctx) in find_dst_vma()
45 return dst_vma; in find_dst_vma()
49 static bool mfill_file_over_size(struct vm_area_struct *dst_vma, in mfill_file_over_size() argument
55 if (!dst_vma->vm_file) in mfill_file_over_size()
58 inode = dst_vma->vm_file->f_inode; in mfill_file_over_size()
59 offset = linear_page_index(dst_vma, dst_addr); in mfill_file_over_size()
71 struct vm_area_struct *dst_vma, in mfill_atomic_install_pte() argument
[all …]
Dmemory.c767 pte_t *dst_pte, pte_t *src_pte, struct vm_area_struct *dst_vma, in copy_nonpresent_pte() argument
770 unsigned long vm_flags = dst_vma->vm_flags; in copy_nonpresent_pte()
860 pte_marker marker = copy_pte_marker(entry, dst_vma); in copy_nonpresent_pte()
867 if (!userfaultfd_wp(dst_vma)) in copy_nonpresent_pte()
886 copy_present_page(struct vm_area_struct *dst_vma, struct vm_area_struct *src_vma, in copy_present_page() argument
904 folio_add_new_anon_rmap(new_folio, dst_vma, addr); in copy_present_page()
905 folio_add_lru_vma(new_folio, dst_vma); in copy_present_page()
909 pte = mk_pte(&new_folio->page, dst_vma->vm_page_prot); in copy_present_page()
910 pte = maybe_mkwrite(pte_mkdirty(pte), dst_vma); in copy_present_page()
911 if (userfaultfd_pte_wp(dst_vma, ptep_get(src_pte))) in copy_present_page()
[all …]
Dhugetlb.c5029 struct vm_area_struct *dst_vma, in copy_hugetlb_page_range() argument
5068 dst_pte = huge_pte_alloc(dst, dst_vma, addr, sz); in copy_hugetlb_page_range()
5098 if (!userfaultfd_wp(dst_vma)) in copy_hugetlb_page_range()
5117 if (!userfaultfd_wp(dst_vma)) in copy_hugetlb_page_range()
5122 pte_to_swp_entry(entry), dst_vma); in copy_hugetlb_page_range()
5152 new_folio = alloc_hugetlb_folio(dst_vma, addr, 1); in copy_hugetlb_page_range()
5160 addr, dst_vma); in copy_hugetlb_page_range()
5173 restore_reserve_on_error(h, dst_vma, addr, in copy_hugetlb_page_range()
5179 hugetlb_install_folio(dst_vma, dst_pte, addr, in copy_hugetlb_page_range()
5198 if (!userfaultfd_wp(dst_vma)) in copy_hugetlb_page_range()
[all …]
Dhuge_memory.c1064 struct vm_area_struct *dst_vma, struct vm_area_struct *src_vma) in copy_huge_pmd() argument
1073 if (!vma_is_anonymous(dst_vma)) in copy_huge_pmd()
1105 if (!userfaultfd_wp(dst_vma)) in copy_huge_pmd()
1150 if (!userfaultfd_wp(dst_vma)) in copy_huge_pmd()
Dshmem.c2552 struct vm_area_struct *dst_vma, in shmem_mfill_atomic_pte() argument
2558 struct inode *inode = file_inode(dst_vma->vm_file); in shmem_mfill_atomic_pte()
2562 pgoff_t pgoff = linear_page_index(dst_vma, dst_addr); in shmem_mfill_atomic_pte()
2641 gfp & GFP_RECLAIM_MASK, dst_vma->vm_mm); in shmem_mfill_atomic_pte()
2645 ret = mfill_atomic_install_pte(dst_pmd, dst_vma, dst_addr, in shmem_mfill_atomic_pte()
/Linux-v6.6/include/linux/
Dshmem_fs.h180 struct vm_area_struct *dst_vma,
186 #define shmem_mfill_atomic_pte(dst_pmd, dst_vma, dst_addr, \ argument
Dmm_inline.h533 swp_entry_t entry, struct vm_area_struct *dst_vma) in copy_pte_marker() argument
540 if ((srcm & PTE_MARKER_UFFD_WP) && userfaultfd_wp(dst_vma)) in copy_pte_marker()
Dhugetlb.h154 struct vm_area_struct *dst_vma,
340 struct vm_area_struct *dst_vma, in copy_hugetlb_page_range() argument
426 struct vm_area_struct *dst_vma, in hugetlb_mfill_atomic_pte() argument
Duserfaultfd_k.h73 struct vm_area_struct *dst_vma,
Dhuge_mm.h13 struct vm_area_struct *dst_vma, struct vm_area_struct *src_vma);
Dmm.h2351 copy_page_range(struct vm_area_struct *dst_vma, struct vm_area_struct *src_vma);