From: Artem Bityutskiy Date: Fri, 22 Aug 2008 09:26:40 +0000 (+0300) Subject: UBIFS: do not update min_idx_lebs in stafs X-Git-Tag: v2.6.27-rc6~7^2~11 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=8191e1fa8131a422f4bf7b0f2dc1f8543fd17783;p=linux-2.6-omap-h63xx.git 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 --- diff --git a/fs/ubifs/budget.c b/fs/ubifs/budget.c index 15409815747..ac0d2e1e73b 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) 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)