[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Freeing unlinked inodes in JFFS2




dwmw2@xxxxxxx.org said:
> > RTeli@xxxxxxx.com said:
> > thanks David.... 

> Does that mean you tried it and it worked? If so, I'll commit it.  

AFAICT, it could never have worked. This makes it work, and I've just 
committed it:

--- build.c	2002/01/03 10:38:16	1.17
+++ build.c	2002/01/07 10:44:06
@@ -45,7 +45,7 @@
 
 
 #define for_each_inode(i, c, ic) for (i=0; i<INOCACHE_HASHSIZE; i++) for (ic=c->inocache_list[i]; ic; ic=ic->next) 
-#define for_each_inode_safe(i, c, ic, tmp) for (i=0; i<INOCACHE_HASHSIZE; i++) for (tmp=ic=c->inocache_list[i]; ic; ic=tmp, tmp=ic->next) 
+#define for_each_inode_safe(i, c, ic, tmp) for (i=0; i<INOCACHE_HASHSIZE; i++) for (ic=c->inocache_list[i]; tmp=ic?ic->next:ic, ic; ic=tmp) 
 
 /* Scan plan:
  - Scan physical nodes. Build map of inodes/dirents. Allocate inocaches as we go


--
dwmw2



To unsubscribe from this list: send the line "unsubscribe jffs-dev" in
the body of a message to majordomo@xxxxxxx.com