From aba344fdfed81b2c03d6114c54cfd73a486aa10b Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Mon, 5 Jul 1999 23:09:37 +0000 Subject: Merge with Linux 2.3.9. --- fs/open.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fs/open.c') diff --git a/fs/open.c b/fs/open.c index e9da4e32d..deb898f76 100644 --- a/fs/open.c +++ b/fs/open.c @@ -790,7 +790,7 @@ int filp_close(struct file *filp, fl_owner_t id) 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; } -- cgit v1.2.3