patch-2.3.3 linux/fs/ext2/truncate.c
Next file: linux/fs/hfs/bnode.c
Previous file: linux/fs/ext2/namei.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Sun May 16 13:55:46 1999
- Orig file:
v2.3.2/linux/fs/ext2/truncate.c
- Orig date:
Sat May 15 23:46:04 1999
diff -u --recursive --new-file v2.3.2/linux/fs/ext2/truncate.c linux/fs/ext2/truncate.c
@@ -384,7 +384,7 @@
void ext2_truncate (struct inode * inode)
{
- int err, offset, retry;
+ int err, offset;
if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) ||
S_ISLNK(inode->i_mode)))
@@ -393,7 +393,7 @@
return;
ext2_discard_prealloc(inode);
while (1) {
- retry = trunc_direct(inode);
+ int retry = trunc_direct(inode);
retry |= trunc_indirect (inode,
EXT2_IND_BLOCK,
(u32 *) &inode->u.ext2_i.i_data[EXT2_IND_BLOCK],
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)