mtd/fs/jffs2 nodelist.c,1.107,1.108
Artem Bityuckiy
dedekind at infradead.org
Thu Aug 4 07:40:02 EDT 2005
Update of /home/cvs/mtd/fs/jffs2
In directory phoenix.infradead.org:/tmp/cvs-serv8710
Modified Files:
nodelist.c
Log Message:
[JFFS2] bugfix: calculate checked length correctly
Index: nodelist.c
===================================================================
RCS file: /home/cvs/mtd/fs/jffs2/nodelist.c,v
retrieving revision 1.107
retrieving revision 1.108
diff -u -r1.107 -r1.108
--- nodelist.c 3 Aug 2005 09:26:46 -0000 1.107
+++ nodelist.c 4 Aug 2005 11:39:59 -0000 1.108
@@ -412,7 +412,7 @@
/* Calculate how many bytes were already checked */
ofs = ref_offset(ref) + sizeof(struct jffs2_raw_inode);
- len = ofs - (ofs & (PAGE_CACHE_SIZE - 1));
+ len = ofs & (c->wbuf_pagesize - 1);
len = c->wbuf_pagesize - len;
if (len >= tn->csize) {
More information about the linux-mtd-cvs
mailing list