mtd/fs/jffs2 scan.c,1.82,1.83

gleixner at infradead.org gleixner at infradead.org
Mon Aug 26 10:49:34 EDT 2002


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

Modified Files:
	scan.c 
Log Message:
use ISDIRTY macro at mount time too

Index: scan.c
===================================================================
RCS file: /home/cvs/mtd/fs/jffs2/scan.c,v
retrieving revision 1.82
retrieving revision 1.83
diff -u -r1.82 -r1.83
--- scan.c	20 Aug 2002 21:37:28 -0000	1.82
+++ scan.c	26 Aug 2002 14:49:32 -0000	1.83
@@ -450,7 +450,7 @@
 	    !jeb->first_node->next_in_ino && !jeb->dirty_size)
 		return BLK_STATE_CLEANMARKER;
 	/* move blocks with max 4 byte dirty space to cleanlist */	
-	else if (jeb->used_size >= (c->sector_size - 4)) {
+	else if (!ISDIRTY(c->sector_size - jeb->used_size)) {
 		c->dirty_size -= jeb->dirty_size;
 		c->wasted_size += jeb->dirty_size; 
 		jeb->wasted_size = jeb->dirty_size;





More information about the linux-mtd-cvs mailing list