From 54a0dd5b87e42c0d86f961831f28cdf74876fffc Mon Sep 17 00:00:00 2001 From: Artem Bityutskiy Date: Mon, 22 Dec 2008 11:21:03 +0200 Subject: [PATCH] --- yaml --- r: 125475 b: refs/heads/master c: 2edc2025c2583a18eafe5cdbc7deb36e320aaec5 h: refs/heads/master i: 125473: 31a118f1dea4ea57e11d2ebb008721e76ac71aa9 125471: cfaa8467b3bc449f5934f5d60206119ea01b5b00 v: v3 --- [refs] | 2 +- trunk/fs/ubifs/budget.c | 10 ---------- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/[refs] b/[refs] index 338b1ffd6449..ca2a7396ca69 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 6edbfafda682b30ad984964cc432da6fa1c8fab5 +refs/heads/master: 2edc2025c2583a18eafe5cdbc7deb36e320aaec5 diff --git a/trunk/fs/ubifs/budget.c b/trunk/fs/ubifs/budget.c index 44cff803171a..3715d0114952 100644 --- a/trunk/fs/ubifs/budget.c +++ b/trunk/fs/ubifs/budget.c @@ -766,16 +766,6 @@ long long ubifs_get_free_space(struct ubifs_info *c) min_idx_lebs = c->min_idx_lebs; ubifs_assert(min_idx_lebs == ubifs_calc_min_idx_lebs(c)); outstanding = c->budg_data_growth + c->budg_dd_growth; - - /* - * Force the amount available to the total size reported if the used - * space is zero. - */ - if (c->lst.total_used <= UBIFS_INO_NODE_SZ && !outstanding) { - spin_unlock(&c->space_lock); - return (long long)c->block_cnt << UBIFS_BLOCK_SHIFT; - } - available = ubifs_calc_available(c, min_idx_lebs); /*