UBIFS: avoid unnecessary calculations
Do not calculate min_idx_lebs, because it is available in c->min_idx_lebs Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
This commit is contained in:
parent
650ed50f42
commit
c8f915913a
1 changed files with 2 additions and 1 deletions
|
@ -763,7 +763,8 @@ long long ubifs_get_free_space(struct ubifs_info *c)
|
||||||
long long available, outstanding, free;
|
long long available, outstanding, free;
|
||||||
|
|
||||||
spin_lock(&c->space_lock);
|
spin_lock(&c->space_lock);
|
||||||
min_idx_lebs = ubifs_calc_min_idx_lebs(c);
|
min_idx_lebs = c->min_idx_lebs;
|
||||||
|
ubifs_assert(min_idx_lebs == ubifs_calc_min_idx_lebs(c));
|
||||||
outstanding = c->budg_data_growth + c->budg_dd_growth;
|
outstanding = c->budg_data_growth + c->budg_dd_growth;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue