patch-2.1.43 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: 9
- Date:
Thu Jun 12 16:22:11 1997
- Orig file:
v2.1.42/linux/mm/mremap.c
- Orig date:
Sun Jan 26 02:07:49 1997
diff -u --recursive --new-file v2.1.42/linux/mm/mremap.c linux/mm/mremap.c
@@ -141,7 +141,7 @@
new_vma->vm_end = new_addr+new_len;
new_vma->vm_offset = vma->vm_offset + (addr - vma->vm_start);
if (new_vma->vm_inode)
- new_vma->vm_inode->i_count++;
+ atomic_inc(&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->mm, new_vma);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov