UBI: bugfix: do not forget to increment vol_count
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Wed, 26 Dec 2007 13:59:39 +0000 (15:59 +0200)
committerGrazvydas Ignotas <notasas@gmail.com>
Mon, 25 May 2009 14:08:28 +0000 (17:08 +0300)
commit5c278e30766ff9f97f8e11b25572607f64fc87fd
tree3e15afd35aea75d541edcb5bbbdd70e7717a24e7
parent440fa110ed1d4049b93dba69a232c39929ad9bc1
UBI: bugfix: do not forget to increment vol_count

When creating a new volume, do not forget to increment the
vol_count variable.

Also, users are not interested in internal volumes, so do not show
them in the volumes_count sysfs file.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
drivers/mtd/ubi/build.c
drivers/mtd/ubi/vmt.c