Lines Matching refs:new_vma

3175 	struct vm_area_struct *new_vma, *prev;  in copy_vma()  local
3188 new_vma = find_vma_prev(mm, addr, &prev); in copy_vma()
3189 if (new_vma && new_vma->vm_start < addr + len) in copy_vma()
3192 new_vma = vma_merge(mm, prev, addr, addr + len, vma->vm_flags, in copy_vma()
3195 if (new_vma) { in copy_vma()
3199 if (unlikely(vma_start >= new_vma->vm_start && in copy_vma()
3200 vma_start < new_vma->vm_end)) { in copy_vma()
3213 VM_BUG_ON_VMA(faulted_in_anon_vma, new_vma); in copy_vma()
3214 *vmap = vma = new_vma; in copy_vma()
3216 *need_rmap_locks = (new_vma->vm_pgoff <= vma->vm_pgoff); in copy_vma()
3218 new_vma = vm_area_dup(vma); in copy_vma()
3219 if (!new_vma) in copy_vma()
3221 new_vma->vm_start = addr; in copy_vma()
3222 new_vma->vm_end = addr + len; in copy_vma()
3223 new_vma->vm_pgoff = pgoff; in copy_vma()
3224 if (vma_dup_policy(vma, new_vma)) in copy_vma()
3226 if (anon_vma_clone(new_vma, vma)) in copy_vma()
3228 if (new_vma->vm_file) in copy_vma()
3229 get_file(new_vma->vm_file); in copy_vma()
3230 if (new_vma->vm_ops && new_vma->vm_ops->open) in copy_vma()
3231 new_vma->vm_ops->open(new_vma); in copy_vma()
3232 if (vma_link(mm, new_vma)) in copy_vma()
3237 return new_vma; in copy_vma()
3240 if (new_vma->vm_ops && new_vma->vm_ops->close) in copy_vma()
3241 new_vma->vm_ops->close(new_vma); in copy_vma()
3243 if (new_vma->vm_file) in copy_vma()
3244 fput(new_vma->vm_file); in copy_vma()
3246 unlink_anon_vmas(new_vma); in copy_vma()
3248 mpol_put(vma_policy(new_vma)); in copy_vma()
3250 vm_area_free(new_vma); in copy_vma()
3311 static int special_mapping_mremap(struct vm_area_struct *new_vma) in special_mapping_mremap() argument
3313 struct vm_special_mapping *sm = new_vma->vm_private_data; in special_mapping_mremap()
3315 if (WARN_ON_ONCE(current->mm != new_vma->vm_mm)) in special_mapping_mremap()
3319 return sm->mremap(sm, new_vma); in special_mapping_mremap()