UBI: initialize static volumes with vol->used_bytes
authorJan Altenberg <jan.altenberg@linutronix.de>
Fri, 28 Mar 2008 15:13:53 +0000 (16:13 +0100)
committerGrazvydas Ignotas <notasas@gmail.com>
Mon, 25 May 2009 14:08:37 +0000 (17:08 +0300)
I came across a problem which seems to be present since:

commit 941dfb07ed91451b1c58626a0d258dfdf468b593
UBI: set correct gluebi device size

ubi_create_gluebi() leaves mtd->size = 0 for static volumes. So even
existing static volumes are initialized with a size of 0.

Signed-off-by: Jan Altenberg <jan.altenberg@linutronix.de>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>

No differences found