diff options
author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2011-02-14 06:36:54 -0500 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2011-03-08 03:12:48 -0500 |
commit | f43ec882b8b65de0ebde2e1ad52e8de0349d83ae (patch) | |
tree | 6d71ba08bf9069c354a01a2b2e78ea867bab604a /include/linux | |
parent | 30b542ef453e6832ff682170b2db95d7bca2fe70 (diff) |
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')
-rw-r--r-- | include/linux/mtd/ubi.h | 3 |
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 { | |||
116 | * struct ubi_device_info - UBI device description data structure. | 116 | * struct ubi_device_info - UBI device description data structure. |
117 | * @ubi_num: ubi device number | 117 | * @ubi_num: ubi device number |
118 | * @leb_size: logical eraseblock size on this UBI device | 118 | * @leb_size: logical eraseblock size on this UBI device |
119 | * @leb_start: starting offset of logical eraseblocks within physical | ||
120 | * eraseblocks | ||
119 | * @min_io_size: minimal I/O unit size | 121 | * @min_io_size: minimal I/O unit size |
120 | * @max_write_size: maximum amount of bytes the underlying flash can write at a | 122 | * @max_write_size: maximum amount of bytes the underlying flash can write at a |
121 | * time (MTD write buffer size) | 123 | * time (MTD write buffer size) |
@@ -145,6 +147,7 @@ struct ubi_volume_info { | |||
145 | struct ubi_device_info { | 147 | struct ubi_device_info { |
146 | int ubi_num; | 148 | int ubi_num; |
147 | int leb_size; | 149 | int leb_size; |
150 | int leb_start; | ||
148 | int min_io_size; | 151 | int min_io_size; |
149 | int max_write_size; | 152 | int max_write_size; |
150 | int ro_mode; | 153 | int ro_mode; |