Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c8f91591 authored by Artem Bityutskiy's avatar Artem Bityutskiy
Browse files

UBIFS: avoid unnecessary calculations



Do not calculate min_idx_lebs, because it is available in
c->min_idx_lebs

Signed-off-by: default avatarArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
parent 650ed50f
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -763,7 +763,8 @@ long long ubifs_get_free_space(struct ubifs_info *c)
	long long available, outstanding, free;

	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;

	/*