mtd/fs/jffs2 nodemgmt.c,1.113,1.114

David Woodhouse dwmw2 at infradead.org
Sat Nov 20 11:40:02 EST 2004


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

Modified Files:
	nodemgmt.c 
Log Message:
Add another reason why we can't currently merge obsolete node refs on 
NAND.


Index: nodemgmt.c
===================================================================
RCS file: /home/cvs/mtd/fs/jffs2/nodemgmt.c,v
retrieving revision 1.113
retrieving revision 1.114
diff -u -r1.113 -r1.114
--- nodemgmt.c	20 Nov 2004 16:25:19 -0000	1.113
+++ nodemgmt.c	20 Nov 2004 16:39:59 -0000	1.114
@@ -572,7 +572,11 @@
 	   
 	   Note we can't do this for NAND at the moment because we need 
 	   obsolete dirent nodes to stay on the lists, because of the
-	   horridness in jffs2_garbage_collect_deletion_dirent(). */
+	   horridness in jffs2_garbage_collect_deletion_dirent(). Also
+	   because we delete the inocache, and on NAND we need that to 
+	   stay around until all the nodes are actually erased, in order
+	   to stop us from giving the same inode number to another newly
+	   created inode. */
 	if (ref->next_in_ino) {
 		struct jffs2_inode_cache *ic;
 		struct jffs2_raw_node_ref **p;





More information about the linux-mtd-cvs mailing list