Displaying 1 result from an estimated 1 matches for "ext3_journal_restart".
2003 Feb 04
0
[PATCH] Fix signed use of i_blocks in ext3 truncate
...return 1;
 }
@@ -142,11 +160,8 @@
  */
 static int ext3_journal_test_restart(handle_t *handle, struct inode *inode)
 {
-	long needed = inode->i_blocks;
-	if (needed > EXT3_MAX_TRANS_DATA) 
-		needed = EXT3_MAX_TRANS_DATA;
 	jbd_debug(2, "restarting handle %p\n", handle);
-	return ext3_journal_restart(handle, EXT3_DATA_TRANS_BLOCKS + needed);
+	return ext3_journal_restart(handle, blocks_for_truncate(inode));
 }
 
 /*
--- linux-2.4-tmp/include/linux/ext3_jbd.h.=K0000=.orig	2003-02-03 19:14:43.000000000 +0000
+++ linux-2.4-tmp/include/linux/ext3_jbd.h	2003-02-03 19:17:35.000000000 +0000
@@ -28,7 +...