Browse Source

jffs2_1pass.c: add watchdog support

Signed-off-by: Stuart Wood <stuart.wood@labxtechnologies.com>
Stuart Wood 17 years ago
parent
commit
86d3273e2b
1 changed files with 3 additions and 0 deletions
  1. 3 0
      fs/jffs2/jffs2_1pass.c

+ 3 - 0
fs/jffs2/jffs2_1pass.c

@@ -116,6 +116,7 @@
 #include <malloc.h>
 #include <malloc.h>
 #include <linux/stat.h>
 #include <linux/stat.h>
 #include <linux/time.h>
 #include <linux/time.h>
+#include <watchdog.h>
 
 
 #if defined(CONFIG_CMD_JFFS2)
 #if defined(CONFIG_CMD_JFFS2)
 
 
@@ -1185,6 +1186,8 @@ jffs2_1pass_build_lists(struct part_info * part)
 			oldoffset = offset;
 			oldoffset = offset;
 		}
 		}
 
 
+		WATCHDOG_RESET();
+
 		node = (struct jffs2_unknown_node *) get_node_mem((u32)part->offset + offset);
 		node = (struct jffs2_unknown_node *) get_node_mem((u32)part->offset + offset);
 		if (node->magic == JFFS2_MAGIC_BITMASK && hdr_crc(node)) {
 		if (node->magic == JFFS2_MAGIC_BITMASK && hdr_crc(node)) {
 			/* if its a fragment add it */
 			/* if its a fragment add it */