UBI Patch: Max Sequence no not updated in scan.c

Artem Bityutskiy dedekind at infradead.org
Fri Jul 6 05:46:54 EDT 2007


On Fri, 2007-07-06 at 14:30 +0530, brijesh.singh at calsoftinc.com wrote:
> Hi,I came across problem of having two leb with same sequence no.This
> happens when we continuously write one block again and again and reboot
> machine before background thread erases those blocks.
> The problem here was,when we find two blocks with same sequence no,we take
> the higher one,but we were not updating max seq no,so next block may have
> the same seqnum.
> This patch solves this problem.

I've committed your patch (modified) and one more fix, please, try.

Thanks,
Artem.

-- 
Best regards,
Artem Bityutskiy (Битюцкий Артём)




More information about the linux-mtd mailing list