patch-2.1.131 linux/fs/open.c
Next file: linux/fs/qnx4/namei.c
Previous file: linux/fs/nfsd/vfs.c
Back to the patch index
Back to the overall index
- Lines: 14
- Date:
Tue Dec 1 11:03:25 1998
- Orig file:
v2.1.130/linux/fs/open.c
- Orig date:
Thu Nov 19 09:56:28 1998
diff -u --recursive --new-file v2.1.130/linux/fs/open.c linux/fs/open.c
@@ -797,11 +797,11 @@
printk("VFS: Close: file count is 0\n");
return 0;
}
- if (dentry->d_inode)
- locks_remove_posix(filp, id);
retval = 0;
if (filp->f_op && filp->f_op->flush)
retval = filp->f_op->flush(filp);
+ if (dentry->d_inode)
+ locks_remove_posix(filp, id);
fput(filp);
return retval;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov