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

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

Kernel v2.3.9 /kernel/acct.c

Filename:/kernel/acct.c
Lines Added:1
Lines Deleted:1
Also changed in: (Previous) 2.3.7  2.2.5  2.2.5-pre2  2.2.5-pre1  2.2.4-ac1  2.2.4 
(Following) 2.3.10  2.3.15  2.3.31  2.3.51  2.3.99-pre2  2.3.99-pre4 

Location
[  2.3.9
  [  kernel
     o  acct.c

Patch

diff -u --recursive --new-file v2.3.8/linux/kernel/acct.c linux/kernel/acct.c
--- v2.3.8/linux/kernel/acct.c   Fri Jun 18 08:01:50 1999
+++ linux/kernel/acct.c   Tue Jun 29 09:22:08 1999
@@ -276,7 +276,7 @@
     */
    if (!file)
       return 0;
-   file->f_count++;
+   atomic_inc(&file->f_count);
    if (!check_free_space(file)) {
       fput(file);
       return 0;


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