Re: 4k-aligned nodes

David Woodhouse <[email protected]> Tue, 07 Dec 2004 15:30:54 +0000
Newsgroups gmane.linux.file-systems.jffs
Message-ID <[email protected]>
On Tue, 2004-12-07 at 15:59 +0100, Jörn Engel wrote:
> Solution:
> GC always tries to write out 4k-aligned nodes with 4k of uncompressed
> data.

We've been doing that in JFFS2 since February 2001. :)

> This also causes GC to run into corner-cases and occasionally use more
> flash footprint than original data.  But in the long run, it should
> cause data to be in the most efficient format on-flash.

That's why we have an extra threshold, for the amount of free space
which is required for GC to merge nodes. See the logic in
jffs2_garbage_collect_dnode() which expands 'start' and 'end'.

-- 
dwmw2


To unsubscribe from this list: send the line "unsubscribe jffs-dev" in
the body of a message to [email protected]