diff options
author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2011-02-14 14:17:55 +0100 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2011-03-08 09:12:48 +0100 |
commit | ca2ec61d157f23ec24aaa200f8016ea0a8aeb617 (patch) | |
tree | 63bb4d63ec07572030d93c34696457d99e1555b2 /fs/ubifs/super.c | |
parent | UBIFS: incorporate maximum write size (diff) | |
download | linux-ca2ec61d157f23ec24aaa200f8016ea0a8aeb617.tar.xz linux-ca2ec61d157f23ec24aaa200f8016ea0a8aeb617.zip |
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/super.c')
-rw-r--r-- | fs/ubifs/super.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ubifs/super.c b/fs/ubifs/super.c index efc327b92f98..d4b4cb4596e2 100644 --- a/fs/ubifs/super.c +++ b/fs/ubifs/super.c @@ -504,6 +504,7 @@ static int init_constants_early(struct ubifs_info *c) c->leb_cnt = c->vi.size; c->leb_size = c->vi.usable_leb_size; + c->leb_start = c->di.leb_start; c->half_leb_size = c->leb_size / 2; c->min_io_size = c->di.min_io_size; c->min_io_shift = fls(c->min_io_size) - 1; |