mtd/fs/jffs2 nodelist.c,1.56,1.57

David Woodhouse dwmw2 at infradead.org
Tue Sep 3 19:06:56 EDT 2002


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

Modified Files:
	nodelist.c 
Log Message:
 more debugging


Index: nodelist.c
===================================================================
RCS file: /home/cvs/mtd/fs/jffs2/nodelist.c,v
retrieving revision 1.56
retrieving revision 1.57
diff -u -r1.56 -r1.57
--- nodelist.c	3 Sep 2002 22:29:14 -0000	1.56
+++ nodelist.c	3 Sep 2002 23:06:53 -0000	1.57
@@ -542,8 +542,13 @@
 	if (parent) {
 		if (victim == parent->rb_left)
 			parent->rb_left = new;
-		else
+		else if (victim == parent->rb_right)
 			parent->rb_right = new;
+		else {
+			printk(KERN_CRIT "Parent disowned us. %p, %p, %p, %p\n",
+			       victim, parent, parent->rb_left, parent->rb_right);
+			BUG();
+		}
 	}
 	if (victim->rb_left)
 		victim->rb_left->rb_parent = new;





More information about the linux-mtd-cvs mailing list