Latest jffs2 broken?

Peter Grayson pgrayson at realmsys.com
Thu Sep 1 01:02:19 EDT 2005


> Did you try which earlier snapshot works correctly? It can be a good
> starting point where the problem is. 2005-07-30? 2005-08-01? 2005-08-05?

This problem does not occur with 2005-08-01, but does with 2005-08-02.
There were some significant changes to the frag tree code that went in
between these two snapshots.

It appears that the offending code is in readinode.c. There is code in
jffs2_get_inode_nodes(), read_dnode(), and read_more() that attempts to
optimize the NAND (writebuffered) cases to avoid redundant reads of
flash. When I removed these optimizations, the problem goes away and
everything is quite happy. It was not obvious to me what is wrong with
this code, but honestly, I'm too tired to figure it out now.

Regardless, I have attached the patch that makes latest mtd cvs work for
me. I do not have high hopes that the powers that be will want to apply
this patch, but I wanted to put it out there in case someone else is
having the same trouble. Maybe someone more familiar with this code
could take another look too.

Pete

-------------- next part --------------
A non-text attachment was scrubbed...
Name: jffs2-simpler-readinode.patch
Type: text/x-patch
Size: 6398 bytes
Desc: not available
Url : http://lists.infradead.org/pipermail/linux-mtd/attachments/20050831/b17a003e/attachment.bin 


More information about the linux-mtd mailing list