patch-2.1.89 linux/mm/mremap.c
Next file: linux/mm/page_alloc.c
Previous file: linux/mm/mprotect.c
Back to the patch index
Back to the overall index
- Lines: 11
- Date:
Fri Feb 27 10:51:49 1998
- Orig file:
v2.1.88/linux/mm/mremap.c
- Orig date:
Sun Jul 13 21:20:11 1997
diff -u --recursive --new-file v2.1.88/linux/mm/mremap.c linux/mm/mremap.c
@@ -140,7 +140,9 @@
new_vma->vm_start = new_addr;
new_vma->vm_end = new_addr+new_len;
new_vma->vm_offset = vma->vm_offset + (addr - vma->vm_start);
- new_vma->vm_dentry = dget(vma->vm_dentry);
+ new_vma->vm_file = vma->vm_file;
+ if (new_vma->vm_file)
+ new_vma->vm_file->f_count++;
if (new_vma->vm_ops && new_vma->vm_ops->open)
new_vma->vm_ops->open(new_vma);
insert_vm_struct(current->mm, new_vma);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov