mtd/fs/jffs2/ecos/src fs-ecos.c,1.37,1.38
David Woodhouse
dwmw2 at infradead.org
Thu Nov 11 06:26:06 EST 2004
Update of /home/cvs/mtd/fs/jffs2/ecos/src
In directory phoenix.infradead.org:/tmp/cvs-serv26610
Modified Files:
fs-ecos.c
Log Message:
Make jffs2_gc_fetch_page fetch a page-aligned page, not a page length starting at some random offset
Index: fs-ecos.c
===================================================================
RCS file: /home/cvs/mtd/fs/jffs2/ecos/src/fs-ecos.c,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -r1.37 -r1.38
--- fs-ecos.c 21 Apr 2004 18:45:54 -0000 1.37
+++ fs-ecos.c 11 Nov 2004 11:26:03 -0000 1.38
@@ -1661,7 +1661,8 @@
/* FIXME: This works only with one file system mounted at a time */
int ret;
- ret = jffs2_read_inode_range(c, f, gc_buffer, offset, PAGE_CACHE_SIZE);
+ ret = jffs2_read_inode_range(c, f, gc_buffer,
+ offset & ~(PAGE_CACHE_SIZE-1), PAGE_CACHE_SIZE);
if (ret)
return ERR_PTR(ret);
More information about the linux-mtd-cvs
mailing list