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

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

Advertisement

Kernel v2.3.9 /fs/open.c

Filename:/fs/open.c
Lines Added:1
Lines Deleted:1
Also changed in: (Previous) 2.3.4  2.2.9-ac6  2.2.9-ac5  2.2.9-ac4  2.2.9-ac3  2.2.9-ac2 
(Following) 2.3.10  2.3.11  2.3.12  2.3.15  2.3.20  2.3.25 

Location
[  2.3.9
  [  fs
     o  open.c

Patch

diff -u --recursive --new-file v2.3.8/linux/fs/open.c linux/fs/open.c
--- v2.3.8/linux/fs/open.c   Mon May 24 22:47:43 1999
+++ linux/fs/open.c   Mon Jun 28 11:44:52 1999
@@ -790,7 +790,7 @@
    int retval;
    struct dentry *dentry = filp->f_dentry;
 
-   if (filp->f_count == 0) {
+   if (!atomic_read(&filp->f_count)) {
       printk("VFS: Close: file count is 0\n");
       return 0;
    }


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