patch-pre2.0.11 linux/fs/ncpfs/inode.c
Next file: linux/include/asm-i386/posix_types.h
Previous file: linux/fs/ncpfs/file.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Sun Jun 2 11:21:10 1996
- Orig file:
pre2.0.10/linux/fs/ncpfs/inode.c
- Orig date:
Fri Apr 19 10:08:01 1996
diff -u --recursive --new-file pre2.0.10/linux/fs/ncpfs/inode.c linux/fs/ncpfs/inode.c
@@ -129,7 +129,9 @@
ncp_put_inode(struct inode *inode)
{
struct nw_file_info *finfo = NCP_FINFO(inode);
+ struct super_block *sb = inode->i_sb;
+ lock_super(sb);
if (finfo->opened != 0)
{
if (ncp_close_file(NCP_SERVER(inode), finfo->file_handle)!=0)
@@ -152,6 +154,7 @@
}
clear_inode(inode);
+ unlock_super(sb);
}
struct super_block *
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this