Re: jffs2_get_inode_nodes(): Data CRC failed on NAND device

Martin Egholm Nielsen
2005-02-16T07:43:35Z

>>>Well, as someone told me the other day on the IRC-channel, the
>>>writebuffer is flushed automatically if the buffer has not been accessed
>>>for X (2?) seconds (controlled by the VFS, right?)...
>>>Correct me if I'm wrong...
>>Not quite. The write buffer is flushed every 5 seconds, unless you tune
>>it using the /proc entry. It's controlled by kupdated, which syncs the
>>supers, which flushes the write buffer in JFFS2.
But this might be the better solution for Frederic, instead of poluting
his code with fsync's. That is, just tune the /proc entry (which one?)
to a value suitable for your needs - e.g. 2 secs.

>>If the write buffer contains GC data, that isn't flushed at all.
> Just to clarify that, if the buffer contains _only_ GC data it isn't
> flushed. If it contains GC + inode data, all of that data is.
:o)

// Martin