diff options
author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2009-03-16 09:56:57 +0200 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2009-03-16 10:52:02 +0200 |
commit | fb1cd01a33ecb8a49d590c034ba146dff80c5597 (patch) | |
tree | d963edf8512c6979fd7c8a34b6550a81e9828128 /fs/ubifs/super.c | |
parent | c9927c3ee2d3d14893efd793a2a9ea772ddb4289 (diff) | |
download | blackbird-op-linux-fb1cd01a33ecb8a49d590c034ba146dff80c5597.tar.gz blackbird-op-linux-fb1cd01a33ecb8a49d590c034ba146dff80c5597.zip |
UBIFS: introduce a helpful variable
This patch introduces a helpful @c->idx_leb_size variable.
The patch also fixes some spelling issues and makes comments
use "LEB" instead of "eraseblock", which is more correct.
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'fs/ubifs/super.c')
-rw-r--r-- | fs/ubifs/super.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/ubifs/super.c b/fs/ubifs/super.c index 03cd9ac4dcb2..7bdd248ec770 100644 --- a/fs/ubifs/super.c +++ b/fs/ubifs/super.c @@ -700,6 +700,8 @@ static int init_constants_sb(struct ubifs_info *c) if (err) return err; + /* Initialize effective LEB size used in budgeting calculations */ + c->idx_leb_size = c->leb_size - c->max_idx_node_sz; return 0; } @@ -716,6 +718,7 @@ static void init_constants_master(struct ubifs_info *c) long long tmp64; c->min_idx_lebs = ubifs_calc_min_idx_lebs(c); + c->report_rp_size = ubifs_reported_space(c, c->rp_size); /* * Calculate total amount of FS blocks. This number is not used |