diff options
author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2007-05-05 09:33:13 -0400 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2007-07-18 09:52:51 -0400 |
commit | 941dfb07ed91451b1c58626a0d258dfdf468b593 (patch) | |
tree | ddee58cc8960994237c83c852227a301dfc8378e /drivers/mtd/ubi/ubi.h | |
parent | 4ab60a0d7c92cab16f7e470f80ea039a0b174bce (diff) |
UBI: set correct gluebi device size
In case of static volumes, make emulated MTD device size to
be equivalent to data size, rather then volume size.
Reported-by: John Smith <john@arrows.demon.co.uk>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'drivers/mtd/ubi/ubi.h')
-rw-r--r-- | drivers/mtd/ubi/ubi.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mtd/ubi/ubi.h b/drivers/mtd/ubi/ubi.h index feb647f108f..c26edea9681 100644 --- a/drivers/mtd/ubi/ubi.h +++ b/drivers/mtd/ubi/ubi.h | |||
@@ -374,9 +374,11 @@ void ubi_calculate_reserved(struct ubi_device *ubi); | |||
374 | #ifdef CONFIG_MTD_UBI_GLUEBI | 374 | #ifdef CONFIG_MTD_UBI_GLUEBI |
375 | int ubi_create_gluebi(struct ubi_device *ubi, struct ubi_volume *vol); | 375 | int ubi_create_gluebi(struct ubi_device *ubi, struct ubi_volume *vol); |
376 | int ubi_destroy_gluebi(struct ubi_volume *vol); | 376 | int ubi_destroy_gluebi(struct ubi_volume *vol); |
377 | void ubi_gluebi_updated(struct ubi_volume *vol); | ||
377 | #else | 378 | #else |
378 | #define ubi_create_gluebi(ubi, vol) 0 | 379 | #define ubi_create_gluebi(ubi, vol) 0 |
379 | #define ubi_destroy_gluebi(vol) 0 | 380 | #define ubi_destroy_gluebi(vol) 0 |
381 | #define ubi_gluebi_updated(vol) | ||
380 | #endif | 382 | #endif |
381 | 383 | ||
382 | /* eba.c */ | 384 | /* eba.c */ |