Skip to content

Commit

Permalink
UBIFS: do not update min_idx_lebs in stafs
Browse files Browse the repository at this point in the history
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: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
  • Loading branch information
Artem Bityutskiy authored and Artem Bityutskiy committed Aug 31, 2008
1 parent 601c0bc commit 8191e1f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion fs/ubifs/budget.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8191e1f

Please sign in to comment.