Lines Matching refs:dst_mm
849 copy_one_pte(struct mm_struct *dst_mm, struct mm_struct *src_mm, in copy_one_pte() argument
866 if (unlikely(list_empty(&dst_mm->mmlist))) { in copy_one_pte()
868 if (list_empty(&dst_mm->mmlist)) in copy_one_pte()
869 list_add(&dst_mm->mmlist, in copy_one_pte()
920 set_pte_at(dst_mm, addr, dst_pte, pte); in copy_one_pte()
924 static int copy_pte_range(struct mm_struct *dst_mm, struct mm_struct *src_mm, in copy_pte_range() argument
938 dst_pte = pte_alloc_map_lock(dst_mm, dst_pmd, addr, &dst_ptl); in copy_pte_range()
963 entry.val = copy_one_pte(dst_mm, src_mm, dst_pte, src_pte, in copy_pte_range()
973 add_mm_rss_vec(dst_mm, rss); in copy_pte_range()
987 static inline int copy_pmd_range(struct mm_struct *dst_mm, struct mm_struct *src_mm, in copy_pmd_range() argument
994 dst_pmd = pmd_alloc(dst_mm, dst_pud, addr); in copy_pmd_range()
1003 err = copy_huge_pmd(dst_mm, src_mm, in copy_pmd_range()
1013 if (copy_pte_range(dst_mm, src_mm, dst_pmd, src_pmd, in copy_pmd_range()
1020 static inline int copy_pud_range(struct mm_struct *dst_mm, struct mm_struct *src_mm, in copy_pud_range() argument
1027 dst_pud = pud_alloc(dst_mm, dst_pgd, addr); in copy_pud_range()
1035 if (copy_pmd_range(dst_mm, src_mm, dst_pud, src_pud, in copy_pud_range()
1042 int copy_page_range(struct mm_struct *dst_mm, struct mm_struct *src_mm, in copy_page_range() argument
1065 return copy_hugetlb_page_range(dst_mm, src_mm, vma); in copy_page_range()
1091 dst_pgd = pgd_offset(dst_mm, addr); in copy_page_range()
1097 if (unlikely(copy_pud_range(dst_mm, src_mm, dst_pgd, src_pgd, in copy_page_range()