patch-2.3.9 linux/fs/open.c

Next file: linux/fs/pipe.c
Previous file: linux/fs/ntfs/fs.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.8/linux/fs/open.c linux/fs/open.c
@@ -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;
 	}

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)