[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Killing JFFS under 2.2



David Woodhouse wrote:
> 
> scote1@xxxxxxx.com said:
> >  If it has already found some data in the scan (the head), each free
> > space should be set as dirty.  Then the GC should be able to repair
> > the damages.
> 
> do you mean....
> 
> or even...
>
>       if (fmc->head && pos < end) {
>                                jffs_fmalloced(fmc, (__u32) start,
>                                               (__u32) (pos - start), 0);
>                        }

That's what I had in mind but I dont't think fmc->head has been set at
that point.  If not, just add a variable that says a node has been
found.

That should do the trick!

-- 
Sébastien Côté