patch-2.1.88 linux/fs/open.c

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

diff -u --recursive --new-file v2.1.87/linux/fs/open.c linux/fs/open.c
@@ -745,17 +745,14 @@
 
 int close_fp(struct file *filp)
 {
-	struct dentry *dentry;
-	struct inode *inode;
+	struct dentry *dentry = filp->f_dentry;
 
 	if (filp->f_count == 0) {
 		printk("VFS: Close: file count is 0\n");
 		return 0;
 	}
-	dentry = filp->f_dentry;
-	inode = dentry->d_inode;
-	if (inode)
-		locks_remove_locks(current, filp);
+	if (dentry->d_inode)
+		locks_remove_posix(current, filp);
 	return fput(filp);
 }
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov