Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.3.9 /mm/mremap.c

Filename:/mm/mremap.c
Lines Added:1
Lines Deleted:1
Also changed in: (Previous) 2.3.6  2.1.6  2.0.1 
(Following) 2.3.10  2.3.11  2.3.23  2.3.25  2.3.29  2.3.31 

Location
[  2.3.9
  [  mm
     o  mremap.c

Patch

diff -u --recursive --new-file v2.3.8/linux/mm/mremap.c linux/mm/mremap.c
--- v2.3.8/linux/mm/mremap.c   Thu Jun  3 23:15:29 1999
+++ linux/mm/mremap.c   Mon Jun 28 13:53:22 1999
@@ -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);


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.