patch-2.3.9 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
- Lines: 9
- Date:
Mon Jun 28 13:53:22 1999
- Orig file:
v2.3.8/linux/mm/mremap.c
- Orig date:
Thu Jun 3 23:15:29 1999
diff -u --recursive --new-file v2.3.8/linux/mm/mremap.c linux/mm/mremap.c
@@ -136,7 +136,7 @@
new_vma->vm_offset = vma->vm_offset + (addr - vma->vm_start);
lock_kernel();
if (new_vma->vm_file)
- new_vma->vm_file->f_count++;
+ atomic_inc(&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 (who was at: slshen@lbl.gov)