mtd/fs/jffs2 nodemgmt.c,1.81,1.82

David Woodhouse dwmw2 at infradead.org
Tue Sep 24 10:06:40 EDT 2002


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

Modified Files:
	nodemgmt.c 
Log Message:
Another cleanmarker_size missing.


Index: nodemgmt.c
===================================================================
RCS file: /home/cvs/mtd/fs/jffs2/nodemgmt.c,v
retrieving revision 1.81
retrieving revision 1.82
diff -u -r1.81 -r1.82
--- nodemgmt.c	24 Sep 2002 10:26:56 -0000	1.81
+++ nodemgmt.c	24 Sep 2002 14:06:37 -0000	1.82
@@ -240,7 +240,7 @@
 	*ofs = jeb->offset + (c->sector_size - jeb->free_size);
 	*len = jeb->free_size;
 
-	if (jeb->used_size == PAD(sizeof(struct jffs2_unknown_node)) &&
+	if (jeb->used_size == c->cleanmarker_size &&
 	    !jeb->first_node->next_in_ino) {
 		/* Only node in it beforehand was a CLEANMARKER node (we think). 
 		   So mark it obsolete now that there's going to be another node





More information about the linux-mtd-cvs mailing list