• Home
  • Raw
  • Download

Lines Matching refs:new_vma

3419 	struct vm_area_struct *new_vma, *prev;  in copy_vma()  local
3445 new_vma = __vma_merge(mm, prev, addr, addr + len, vma->vm_flags, in copy_vma()
3449 if (new_vma) { in copy_vma()
3453 if (unlikely(vma_start >= new_vma->vm_start && in copy_vma()
3454 vma_start < new_vma->vm_end)) { in copy_vma()
3467 VM_BUG_ON_VMA(faulted_in_anon_vma, new_vma); in copy_vma()
3468 *vmap = vma = new_vma; in copy_vma()
3470 *need_rmap_locks = (new_vma->vm_pgoff <= vma->vm_pgoff); in copy_vma()
3472 new_vma = vm_area_dup(vma); in copy_vma()
3473 if (!new_vma) in copy_vma()
3475 new_vma->vm_start = addr; in copy_vma()
3476 new_vma->vm_end = addr + len; in copy_vma()
3477 new_vma->vm_pgoff = pgoff; in copy_vma()
3478 if (vma_dup_policy(vma, new_vma)) in copy_vma()
3480 if (anon_vma_clone(new_vma, vma)) in copy_vma()
3482 if (new_vma->vm_file) in copy_vma()
3483 get_file(new_vma->vm_file); in copy_vma()
3484 if (new_vma->vm_ops && new_vma->vm_ops->open) in copy_vma()
3485 new_vma->vm_ops->open(new_vma); in copy_vma()
3494 vm_write_begin(new_vma); in copy_vma()
3495 vma_link(mm, new_vma, prev, rb_link, rb_parent); in copy_vma()
3498 return new_vma; in copy_vma()
3501 mpol_put(vma_policy(new_vma)); in copy_vma()
3503 vm_area_free(new_vma); in copy_vma()
3563 static int special_mapping_mremap(struct vm_area_struct *new_vma) in special_mapping_mremap() argument
3565 struct vm_special_mapping *sm = new_vma->vm_private_data; in special_mapping_mremap()
3567 if (WARN_ON_ONCE(current->mm != new_vma->vm_mm)) in special_mapping_mremap()
3571 return sm->mremap(sm, new_vma); in special_mapping_mremap()