mtd/fs/jffs2 gc.c,1.131,1.132

David Woodhouse dwmw2 at infradead.org
Mon Dec 1 06:32:14 EST 2003


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

Modified Files:
	gc.c 
Log Message:
CRC32 the compressed data, not the uncompressed version. Doh.


Index: gc.c
===================================================================
RCS file: /home/cvs/mtd/fs/jffs2/gc.c,v
retrieving revision 1.131
retrieving revision 1.132
diff -u -r1.131 -r1.132
--- gc.c	24 Nov 2003 12:07:28 -0000	1.131
+++ gc.c	1 Dec 2003 11:32:11 -0000	1.132
@@ -1211,7 +1211,7 @@
 		ri.dsize = cpu_to_je32(datalen);
 		ri.compr = comprtype;
 		ri.node_crc = cpu_to_je32(crc32(0, &ri, sizeof(ri)-8));
-		ri.data_crc = cpu_to_je32(crc32(0, writebuf, cdatalen));
+		ri.data_crc = cpu_to_je32(crc32(0, comprbuf, cdatalen));
 	
 		new_fn = jffs2_write_dnode(c, f, &ri, comprbuf, cdatalen, phys_ofs, ALLOC_GC);
 




More information about the linux-mtd-cvs mailing list