diff options
author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2007-12-26 14:59:39 +0100 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2007-12-26 18:15:18 +0100 |
commit | 4b3cc340614e552c476bec29d984c5a363b26494 (patch) | |
tree | 5fd0df68217f18dcfb80761c932a5dcba5de947d /drivers/mtd/ubi/vmt.c | |
parent | UBI: do not support kiB (diff) | |
download | linux-4b3cc340614e552c476bec29d984c5a363b26494.tar.xz linux-4b3cc340614e552c476bec29d984c5a363b26494.zip |
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>
Diffstat (limited to 'drivers/mtd/ubi/vmt.c')
-rw-r--r-- | drivers/mtd/ubi/vmt.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mtd/ubi/vmt.c b/drivers/mtd/ubi/vmt.c index 42d3dd70f2d0..177227e1f80d 100644 --- a/drivers/mtd/ubi/vmt.c +++ b/drivers/mtd/ubi/vmt.c @@ -357,6 +357,7 @@ int ubi_create_volume(struct ubi_device *ubi, struct ubi_mkvol_req *req) spin_lock(&ubi->volumes_lock); ubi->volumes[vol_id] = vol; + ubi->vol_count += 1; spin_unlock(&ubi->volumes_lock); paranoid_check_volumes(ubi); |