diff options
author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2008-08-22 05:26:40 -0400 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2008-08-31 10:15:43 -0400 |
commit | 8191e1fa8131a422f4bf7b0f2dc1f8543fd17783 (patch) | |
tree | 633b30c1a0e59c300c52a543daf9f59176e15e1a /fs/ubifs/budget.c | |
parent | 601c0bc46753007be011b513ba4fc50ed8e30aef (diff) |
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: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'fs/ubifs/budget.c')
-rw-r--r-- | fs/ubifs/budget.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/ubifs/budget.c b/fs/ubifs/budget.c index 154098157473..ac0d2e1e73b1 100644 --- a/fs/ubifs/budget.c +++ b/fs/ubifs/budget.c | |||
@@ -741,7 +741,6 @@ long long ubifs_budg_get_free_space(struct ubifs_info *c) | |||
741 | 741 | ||
742 | available = ubifs_calc_available(c, min_idx_lebs); | 742 | available = ubifs_calc_available(c, min_idx_lebs); |
743 | outstanding = c->budg_data_growth + c->budg_dd_growth; | 743 | outstanding = c->budg_data_growth + c->budg_dd_growth; |
744 | c->min_idx_lebs = min_idx_lebs; | ||
745 | spin_unlock(&c->space_lock); | 744 | spin_unlock(&c->space_lock); |
746 | 745 | ||
747 | if (available > outstanding) | 746 | if (available > outstanding) |