]> git.baikalelectronics.ru Git - kernel.git/commit
UBI: bugfix in sqnum calculation
authorBrijesh Singh <brijesh.s.singh@gmail.com>
Fri, 6 Jul 2007 11:35:43 +0000 (14:35 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Wed, 18 Jul 2007 13:57:52 +0000 (16:57 +0300)
commitaa9d86d3fe6b02ed257067aa7a481d4c7d8d8cfb
tree68fa0b8943e8629a9208951a2d8dede4b8de17e6
parent54883a724ffcd98ebd0232bee9bd5cbc86d1fbb3
UBI: bugfix in sqnum calculation

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.

Signed-off-by: Brijesh Singh <brijesh.s.singh@gmail.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
drivers/mtd/ubi/scan.c