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

Commit 8191e1fa authored by Artem Bityutskiy's avatar Artem Bityutskiy
Browse files

UBIFS: do not update min_idx_lebs in stafs



This is bad because the rest of the code should not depend on it,
and this may hide bugss, instead of revealing them.

Signed-off-by: default avatarArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
parent 601c0bc4
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -741,7 +741,6 @@ long long ubifs_budg_get_free_space(struct ubifs_info *c)

	available = ubifs_calc_available(c, min_idx_lebs);
	outstanding = c->budg_data_growth + c->budg_dd_growth;
	c->min_idx_lebs = min_idx_lebs;
	spin_unlock(&c->space_lock);

	if (available > outstanding)