Frank,
On 11/29/06, Frank Mandarino <
fmandarino@endrelia.com> wrote:
> I noticed that mounts slowed down considerably on my system which uses
> 512 byte NAND last week when I upgraded to Linux 2.6.19-rc6.
>
> I believe the attached patch fixes the situation. The yaffs_mtdif.c
> translate_oob2spare() function was added to deal with recent MTD rework,
> but it doesn't modify the spare ecc1 and ecc2 fields, so they end up
> with garbage values when the structure is returned to
> yaffs_TagsCompatabilityReadChunkWithTagsFromNAND().
>
> yaffs_TagsCompatabilityReadChunkWithTagsFromNAND() then compares spare
> to a buffer of 0xff's to see if the chunk is used, and the comparison
> always indicates that the chunk is in use, even if the nand flash was
> just erased.
cool! Thanks a lot for your patch, I think this really is it!
Charles/Wookey, mind to apply it?
Thanks,
Vitaly