public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* jffs2_scan_eraseblock scan only 1 KiB not 4 KiB of 0xFF
@ 2005-02-03  9:35 Pathompong Puengrostham
  0 siblings, 0 replies; only message in thread
From: Pathompong Puengrostham @ 2005-02-03  9:35 UTC (permalink / raw)
  To: linux-mtd

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;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-02-03  9:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-03  9:35 jffs2_scan_eraseblock scan only 1 KiB not 4 KiB of 0xFF Pathompong Puengrostham

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox