patch-2.0.19 linux/mm/mremap.c
Next file: linux/mm/vmscan.c
Previous file: linux/mm/mprotect.c
Back to the patch index
Back to the overall index
- Lines: 20
- Date:
Mon Sep 9 21:04:57 1996
- Orig file:
v2.0.18/linux/mm/mremap.c
- Orig date:
Wed Jun 26 09:44:52 1996
diff -u --recursive --new-file v2.0.18/linux/mm/mremap.c linux/mm/mremap.c
@@ -143,8 +143,8 @@
new_vma->vm_inode->i_count++;
if (new_vma->vm_ops && new_vma->vm_ops->open)
new_vma->vm_ops->open(new_vma);
- insert_vm_struct(current, new_vma);
- merge_segments(current, new_vma->vm_start, new_vma->vm_end);
+ insert_vm_struct(current->mm, new_vma);
+ merge_segments(current->mm, new_vma->vm_start, new_vma->vm_end);
do_munmap(addr, old_len);
return new_addr;
}
@@ -180,7 +180,7 @@
/*
* Ok, we need to grow..
*/
- vma = find_vma(current, addr);
+ vma = find_vma(current->mm, addr);
if (!vma || vma->vm_start > addr)
return -EFAULT;
/* We can't remap across vm area boundaries */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov