mtd/fs/jffs2 nodelist.c,1.90,1.91
David Woodhouse
dwmw2 at infradead.org
Tue Dec 21 09:38:52 EST 2004
Update of /home/cvs/mtd/fs/jffs2
In directory phoenix.infradead.org:/tmp/cvs-serv24272
Modified Files:
nodelist.c
Log Message:
Bug on adding inode number zero
Index: nodelist.c
===================================================================
RCS file: /home/cvs/mtd/fs/jffs2/nodelist.c,v
retrieving revision 1.90
retrieving revision 1.91
diff -u -r1.90 -r1.91
--- nodelist.c 8 Dec 2004 17:59:20 -0000 1.90
+++ nodelist.c 21 Dec 2004 14:38:48 -0000 1.91
@@ -490,6 +490,8 @@
{
struct jffs2_inode_cache **prev;
D2(printk(KERN_DEBUG "jffs2_add_ino_cache: Add %p (ino #%u)\n", new, new->ino));
+ BUG_ON(!new->ino);
+
spin_lock(&c->inocache_lock);
prev = &c->inocache_list[new->ino % INOCACHE_HASHSIZE];
More information about the linux-mtd-cvs
mailing list