mtd/fs/jffs2 write.c,1.78,1.79
David Woodhouse
dwmw2 at infradead.org
Wed Dec 3 04:41:05 EST 2003
Update of /home/cvs/mtd/fs/jffs2
In directory phoenix.infradead.org:/tmp/cvs-serv9975
Modified Files:
write.c
Log Message:
Limit cdatalen to end-of-page too, not just datalen.
Index: write.c
===================================================================
RCS file: /home/cvs/mtd/fs/jffs2/write.c,v
retrieving revision 1.78
retrieving revision 1.79
diff -u -r1.78 -r1.79
--- write.c 24 Nov 2003 16:07:01 -0000 1.78
+++ write.c 3 Dec 2003 09:41:03 -0000 1.79
@@ -374,7 +374,7 @@
}
down(&f->sem);
datalen = min_t(uint32_t, writelen, PAGE_CACHE_SIZE - (offset & (PAGE_CACHE_SIZE-1)));
- cdatalen = min_t(uint32_t, alloclen - sizeof(*ri), writelen);
+ cdatalen = min_t(uint32_t, alloclen - sizeof(*ri), datalen);
comprtype = jffs2_compress(buf, &comprbuf, &datalen, &cdatalen);
More information about the linux-mtd-cvs
mailing list