jffs2_scan_eraseblock scan only 1 KiB not 4 KiB of 0xFF

Pathompong Puengrostham jay4mail at yahoo.com
Thu Feb 3 04:35:43 EST 2005


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	27 Jan 2005 04:35:22 -0000	1.3
+++ scan.c	3 Feb 2005 09:29:24 -0000
@@ -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;




More information about the linux-mtd mailing list