jffs_file_write
Finn Hakansson
finn at axis.com
Tue Jul 25 05:44:13 EDT 2000
On Tue, 25 Jul 2000, David Woodhouse wrote:
>
> finn at axis.com said:
> > Yeah. One day, write and rewrite should be merged into one single
> > function...
>
> I'm been thinking about this, and about the problems with garbage collection
> taking to long.
I cannot understand that. How much time are we talking about? How large
is the flash? How long does an erase take? One garbage collect cannot
consume more time than (sectors on flash * number of sectors) time I
think.
> What about shifting all node writes into a kernel thread,
> which also does the GC?
Hmmm...
> The jffs_file_write() function then only needs to queue the node(s) to be
> written, and can return immediately. Obviously we have to implement a way
> of flushing a particular file, but that shouldn't be too difficult.
Well. Sounds like a good idea. I'll think about it.
/Finn
To unsubscribe, send "unsubscribe mtd" to majordomo at infradead.org
More information about the linux-mtd
mailing list