Skip to contentSkip to conversation

jffs2_scan_eraseblock scan only 1 KiB not 4 KiB of 0xFF

PATCH Pathompong Puengrostham 1 participant 1 message Feb 3, 2005 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

Hi,

In scan.c, jffs2_scan_eraseblock() scan only 1 KiB of 0xFF not 4 KiB as said in the comment. I think the comment is not correct. Do I get it right?

Thanks,
Pathompong Puengrostham

scan.c +1 -1
@@ -325,7 +325,7 @@
 	/* We temporarily use 'ofs' as a pointer into the buffer/jeb */
 	ofs = 0;
 
-	/* Scan only 4KiB of 0xFF before declaring it's empty */
+	/* Scan only 1KiB of 0xFF before declaring it's empty */
 	while(ofs < EMPTY_SCAN_SIZE && *(uint32_t *)(&buf[ofs]) == 0xFFFFFFFF)
 		ofs += 4;