mtd/fs/jffs2 gc.c,1.159,1.160

David Woodhouse dwmw2 at infradead.org
Sun Apr 9 15:40:08 EDT 2006


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

Modified Files:
	gc.c 
Log Message:
Wait for inodes which were reading when we come to check them; don't just move on

Index: gc.c
===================================================================
RCS file: /home/cvs/mtd/fs/jffs2/gc.c,v
retrieving revision 1.159
retrieving revision 1.160
diff -u -r1.159 -r1.160
--- gc.c	18 Nov 2005 07:27:45 -0000	1.159
+++ gc.c	9 Apr 2006 19:40:04 -0000	1.160
@@ -235,6 +235,10 @@
 			   and trigger the BUG() above while we haven't yet
 			   finished checking all its nodes */
 			D1(printk(KERN_DEBUG "Waiting for ino #%u to finish reading\n", ic->ino));
+			/* We need to come back again for the _same_ inode. We've
+			 made no progress in this case, but that should be OK */
+			c->checked_ino--;
+			
 			up(&c->alloc_sem);
 			sleep_on_spinunlock(&c->inocache_wq, &c->inocache_lock);
 			return 0;





More information about the linux-mtd-cvs mailing list