aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mtd/ubi.h
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2011-02-14 13:36:54 +0200
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2011-03-08 10:12:48 +0200
commitf43ec882b8b65de0ebde2e1ad52e8de0349d83ae (patch)
tree6d71ba08bf9069c354a01a2b2e78ea867bab604a /include/linux/mtd/ubi.h
parentUBI: incorporate maximum write size (diff)
downloadlinux-dev-f43ec882b8b65de0ebde2e1ad52e8de0349d83ae.tar.xz
linux-dev-f43ec882b8b65de0ebde2e1ad52e8de0349d83ae.zip
UBI: provide LEB offset information
Provide the LEB offset information in the UBI device information data structure. This piece of information is required by UBIFS to find out what are the LEB offsets which are aligned to the max. write size. If LEB offset not aligned to max. write size, then UBIFS has to take this into account to write more optimally. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'include/linux/mtd/ubi.h')
-rw-r--r--include/linux/mtd/ubi.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/mtd/ubi.h b/include/linux/mtd/ubi.h
index 36c70593ae62..84854edf4436 100644
--- a/include/linux/mtd/ubi.h
+++ b/include/linux/mtd/ubi.h
@@ -116,6 +116,8 @@ struct ubi_volume_info {
* struct ubi_device_info - UBI device description data structure.
* @ubi_num: ubi device number
* @leb_size: logical eraseblock size on this UBI device
+ * @leb_start: starting offset of logical eraseblocks within physical
+ * eraseblocks
* @min_io_size: minimal I/O unit size
* @max_write_size: maximum amount of bytes the underlying flash can write at a
* time (MTD write buffer size)
@@ -145,6 +147,7 @@ struct ubi_volume_info {
struct ubi_device_info {
int ubi_num;
int leb_size;
+ int leb_start;
int min_io_size;
int max_write_size;
int ro_mode;