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

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)