mtd/fs/jffs2 nodemgmt.c,1.64,1.65 wbuf.c,1.9,1.10

David Woodhouse dwmw2 at infradead.org
Thu Mar 28 06:05:30 EST 2002


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

Modified Files:
	nodemgmt.c wbuf.c 
Log Message:
increase nr_erasing_blocks when putting a block on the erase_pending_list

Index: nodemgmt.c
===================================================================
RCS file: /home/cvs/mtd/fs/jffs2/nodemgmt.c,v
retrieving revision 1.64
retrieving revision 1.65
diff -u -r1.64 -r1.65
--- nodemgmt.c	15 Mar 2002 10:47:54 -0000	1.64
+++ nodemgmt.c	28 Mar 2002 11:05:27 -0000	1.65
@@ -425,6 +425,7 @@
 				   spend ages scanning it on mount, etc. */
 				D1(printk(KERN_DEBUG "...and adding to erase_pending_list\n"));
 				list_add_tail(&jeb->list, &c->erase_pending_list);
+				c->nr_erasing_blocks++;
 				jffs2_erase_pending_trigger(c);
 			} else {
 				/* Sometimes, however, we leave it elsewhere so it doesn't get

Index: wbuf.c
===================================================================
RCS file: /home/cvs/mtd/fs/jffs2/wbuf.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- wbuf.c	17 Mar 2002 16:58:07 -0000	1.9
+++ wbuf.c	28 Mar 2002 11:05:27 -0000	1.10
@@ -71,6 +71,7 @@
 			   spend ages scanning it on mount, etc. */
 			D1(printk(KERN_DEBUG "...and adding to erase_pending_list\n"));
 			list_add_tail(&jeb->list, &c->erase_pending_list);
+			c->nr_erasing_blocks++;
 			jffs2_erase_pending_trigger(c);
 		} else {
 			/* Sometimes, however, we leave it elsewhere so it doesn't get





More information about the linux-mtd-cvs mailing list