diff options
author | Artem Bityutskiy | 2007-05-05 15:33:13 +0200 |
---|---|---|
committer | Artem Bityutskiy | 2007-07-18 15:52:51 +0200 |
commit | 941dfb07ed91451b1c58626a0d258dfdf468b593 (patch) | |
tree | ddee58cc8960994237c83c852227a301dfc8378e /drivers/mtd/ubi/ubi.h | |
parent | UBI: do not let to read too much (diff) | |
download | kernel-qcow2-linux-941dfb07ed91451b1c58626a0d258dfdf468b593.tar.gz kernel-qcow2-linux-941dfb07ed91451b1c58626a0d258dfdf468b593.tar.xz kernel-qcow2-linux-941dfb07ed91451b1c58626a0d258dfdf468b593.zip |
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 feb647f108f0..c26edea96818 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); #ifdef CONFIG_MTD_UBI_GLUEBI int ubi_create_gluebi(struct ubi_device *ubi, struct ubi_volume *vol); int ubi_destroy_gluebi(struct ubi_volume *vol); +void ubi_gluebi_updated(struct ubi_volume *vol); #else #define ubi_create_gluebi(ubi, vol) 0 #define ubi_destroy_gluebi(vol) 0 +#define ubi_gluebi_updated(vol) #endif /* eba.c */ |