Lines Matching refs:tmp
658 struct vm_area_struct *mpnt, *tmp; in dup_mmap() local
725 tmp = vm_area_dup(mpnt); in dup_mmap()
726 if (!tmp) in dup_mmap()
728 retval = vma_dup_policy(mpnt, tmp); in dup_mmap()
731 tmp->vm_mm = mm; in dup_mmap()
732 retval = dup_userfaultfd(tmp, &uf); in dup_mmap()
735 if (tmp->vm_flags & VM_WIPEONFORK) { in dup_mmap()
741 tmp->anon_vma = NULL; in dup_mmap()
742 } else if (anon_vma_fork(tmp, mpnt)) in dup_mmap()
744 vm_flags_clear(tmp, VM_LOCKED_MASK); in dup_mmap()
745 file = tmp->vm_file; in dup_mmap()
751 if (tmp->vm_flags & VM_SHARED) in dup_mmap()
755 vma_interval_tree_insert_after(tmp, mpnt, in dup_mmap()
764 if (is_vm_hugetlb_page(tmp)) in dup_mmap()
765 hugetlb_dup_vma_private(tmp); in dup_mmap()
771 mas.index = tmp->vm_start; in dup_mmap()
772 mas.last = tmp->vm_end - 1; in dup_mmap()
773 mas_store(&mas, tmp); in dup_mmap()
776 if (!(tmp->vm_flags & VM_WIPEONFORK)) in dup_mmap()
777 retval = copy_page_range(tmp, mpnt); in dup_mmap()
779 if (tmp->vm_ops && tmp->vm_ops->open) in dup_mmap()
780 tmp->vm_ops->open(tmp); in dup_mmap()
814 mpol_put(vma_policy(tmp)); in dup_mmap()
816 vm_area_free(tmp); in dup_mmap()