patch-1.3.45 linux/fs/namei.c
Next file: linux/fs/nfs/nfsroot.c
Previous file: linux/fs/msdos/namei.c
Back to the patch index
Back to the overall index
- Lines: 12
- Date:
Mon Nov 27 09:18:29 1995
- Orig file:
v1.3.44/linux/fs/namei.c
- Orig date:
Mon Sep 18 14:54:07 1995
diff -u --recursive --new-file v1.3.44/linux/fs/namei.c linux/fs/namei.c
@@ -427,9 +427,11 @@
iput(inode);
return error;
}
+ down(&inode->i_sem);
inode->i_size = 0;
if (inode->i_op && inode->i_op->truncate)
inode->i_op->truncate(inode);
+ up(&inode->i_sem);
inode->i_dirt = 1;
put_write_access(inode);
}
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