patch-2.4.0-test9 linux/mm/mremap.c
Next file: linux/mm/page_alloc.c
Previous file: linux/mm/memory.c
Back to the patch index
Back to the overall index
- Lines: 11
- Date:
Thu Sep 28 13:54:32 2000
- Orig file:
v2.4.0-test8/linux/mm/mremap.c
- Orig date:
Mon Jun 19 13:45:51 2000
diff -u --recursive --new-file v2.4.0-test8/linux/mm/mremap.c linux/mm/mremap.c
@@ -225,6 +225,10 @@
/* We can't remap across vm area boundaries */
if (old_len > vma->vm_end - addr)
goto out;
+ if (vma->vm_flags & VM_DONTEXPAND) {
+ if (new_len > old_len)
+ goto out;
+ }
if (vma->vm_flags & VM_LOCKED) {
unsigned long locked = current->mm->locked_vm << PAGE_SHIFT;
locked += new_len - old_len;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)