mtd/fs/jffs3 scan.c,3.15,3.16

Artem Bityuckiy dedekind at infradead.org
Fri Feb 25 05:36:38 EST 2005


Update of /home/cvs/mtd/fs/jffs3
In directory phoenix.infradead.org:/tmp/cvs-serv11772

Modified Files:
	scan.c 
Log Message:
Mirror the same JFFS2 fix.


Index: scan.c
===================================================================
RCS file: /home/cvs/mtd/fs/jffs3/scan.c,v
retrieving revision 3.15
retrieving revision 3.16
diff -u -r3.15 -r3.16
--- scan.c	15 Feb 2005 10:23:16 -0000	3.15
+++ scan.c	25 Feb 2005 10:36:34 -0000	3.16
@@ -464,7 +464,7 @@
 			/* If we're only checking the beginning of a block with a cleanmarker,
 			   bail now */
 			if (buf_ofs == jeb->offset && jeb->used_size == PAD(c->cleanmarker_size) &&
-			    c->cleanmarker_size && !jeb->dirty_size && !jeb->first_node->next_in_ino) {
+			    c->cleanmarker_size && !jeb->dirty_size && !jeb->first_node->next_phys) {
 				DBG_SCAN(1, "%d bytes at start of block seems clean... "
 						"assuming all clean\n", EMPTY_SCAN_SIZE(c->sector_size));
 				return BLK_STATE_CLEANMARKER;
@@ -694,7 +694,7 @@
 	}
 
 	if ((jeb->used_size + jeb->unchecked_size) == PAD(c->cleanmarker_size) && !jeb->dirty_size
-		&& (!jeb->first_node || !jeb->first_node->next_in_ino) )
+		&& (!jeb->first_node || !jeb->first_node->next_phys) )
 		return BLK_STATE_CLEANMARKER;
 
 	/* move blocks with max 4 byte dirty space to cleanlist */





More information about the linux-mtd-cvs mailing list