mtd/fs/jffs2 write.c,1.60,1.61

David Woodhouse dwmw2 at infradead.org
Fri Jan 10 11:01:53 EST 2003


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

Modified Files:
	write.c 
Log Message:
Mark new node pristine if it covers more than a page, not only if it's
precisely one page (i.e. holes can be pristine too).


Index: write.c
===================================================================
RCS file: /home/cvs/mtd/fs/jffs2/write.c,v
retrieving revision 1.60
retrieving revision 1.61
diff -u -r1.60 -r1.61
--- write.c	9 Sep 2002 16:29:08 -0000	1.60
+++ write.c	10 Jan 2003 16:01:51 -0000	1.61
@@ -162,7 +162,7 @@
 		return ERR_PTR(ret?ret:-EIO);
 	}
 	/* Mark the space used */
-	if (datalen == PAGE_CACHE_SIZE)
+	if (datalen >= PAGE_CACHE_SIZE)
 		raw->flash_offset |= REF_PRISTINE;
 	else
 		raw->flash_offset |= REF_NORMAL;





More information about the linux-mtd-cvs mailing list