[JFFS2] GC patch for eCos port

Estelle HAMMACHE estelle.hammache at st.com
Mon Oct 11 08:18:18 EDT 2004


Estelle Hammache wrote:
> 
> Hi Mark,
> 
> isn't it cleaner (for compatibility with Linux) to modify
> jffs2_gc_fetch_page so that it reads a
> PAGE_CACHE_SIZE-aligned buffer ?

Ok so this was discussed in the eCos mailing list, but I meant that
jffs2_gc_fetch_page should call jffs2_read_inode with the reading
offset set to the page boundary: (offset & ~(PAGE_CACHE_SIZE-1)).
I believe this is the expected behavior for jffs2_gc_fetch_page.

Estelle




More information about the linux-mtd mailing list