summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2008-08-22 11:26:40 +0200
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2008-08-31 16:15:43 +0200
commit8191e1fa8131a422f4bf7b0f2dc1f8543fd17783 (patch)
tree633b30c1a0e59c300c52a543daf9f59176e15e1a /fs
parentUBIFS: allow for racing between GC and TNC (diff)
downloadlinux-8191e1fa8131a422f4bf7b0f2dc1f8543fd17783.tar.xz
linux-8191e1fa8131a422f4bf7b0f2dc1f8543fd17783.zip
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')
-rw-r--r--fs/ubifs/budget.c1
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)
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)