patch-2.1.45 linux/mm/mremap.c

Next file: linux/mm/page_io.c
Previous file: linux/mm/mprotect.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.44/linux/mm/mremap.c linux/mm/mremap.c
@@ -140,8 +140,7 @@
 			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);
-			if (new_vma->vm_inode)
-				atomic_inc(&new_vma->vm_inode->i_count);
+			new_vma->vm_dentry = dget(vma->vm_dentry);
 			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