mtd/fs/jffs2 nodelist.c,1.96,1.97

David Woodhouse dwmw2 at infradead.org
Wed Jul 6 11:18:45 EDT 2005


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

Modified Files:
	nodelist.c 
Log Message:
Comment the simplified rbtree add. It isn't _normal_ that we allow 
key collision in rbtrees, so make sure it's documented.


Index: nodelist.c
===================================================================
RCS file: /home/cvs/mtd/fs/jffs2/nodelist.c,v
retrieving revision 1.96
retrieving revision 1.97
diff -u -r1.96 -r1.97
--- nodelist.c	6 Jul 2005 14:43:14 -0000	1.96
+++ nodelist.c	6 Jul 2005 15:18:41 -0000	1.97
@@ -69,6 +69,9 @@
 		parent = *p;
 		this = rb_entry(parent, struct jffs2_tmp_dnode_info, rb);
 
+		/* There may actually be a collision here, but it doesn't
+		   actually matter. As long as the two nodes with the same
+		   version are together, it's all fine. */
 		if (tn->version < this->version)
 			p = &(*p)->rb_left;
 		else





More information about the linux-mtd-cvs mailing list