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
- Lines: 9
- Date:
Mon Jun 28 11:44:52 1999
- Orig file:
v2.3.8/linux/fs/open.c
- Orig date:
Mon May 24 22:47:43 1999
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)