diff options
author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2011-02-14 16:17:55 +0300 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2011-03-08 11:12:48 +0300 |
commit | ca2ec61d157f23ec24aaa200f8016ea0a8aeb617 (patch) | |
tree | 63bb4d63ec07572030d93c34696457d99e1555b2 /fs/ubifs/ubifs.h | |
parent | 3e8e2e0c8da1f1701a8014543c951c41751791cc (diff) | |
download | linux-ca2ec61d157f23ec24aaa200f8016ea0a8aeb617.tar.xz |
UBI: incorporate LEB offset information
Incorporate the LEB offset information into UBIFS. We'll use this
information in one of the next patches to figure out what are the
max. write size offsets relative to the PEB. So this patch is just
a preparation.
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'fs/ubifs/ubifs.h')
-rw-r--r-- | fs/ubifs/ubifs.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/ubifs/ubifs.h b/fs/ubifs/ubifs.h index 8b519499f14a..942c1d3cb0db 100644 --- a/fs/ubifs/ubifs.h +++ b/fs/ubifs/ubifs.h @@ -1028,6 +1028,8 @@ struct ubifs_debug_info; * time (MTD write buffer size) * @max_write_shift: number of bits in @max_write_size minus one * @leb_size: logical eraseblock size in bytes + * @leb_start: starting offset of logical eraseblocks within physical + * eraseblocks * @half_leb_size: half LEB size * @idx_leb_size: how many bytes of an LEB are effectively available when it is * used to store indexing nodes (@leb_size - @max_idx_node_sz) @@ -1276,6 +1278,7 @@ struct ubifs_info { int max_write_size; int max_write_shift; int leb_size; + int leb_start; int half_leb_size; int idx_leb_size; int leb_cnt; |