diff options
-rw-r--r-- | fs/ubifs/budget.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/fs/ubifs/budget.c b/fs/ubifs/budget.c index 44cff803171a..3715d0114952 100644 --- a/fs/ubifs/budget.c +++ b/fs/ubifs/budget.c | |||
@@ -766,16 +766,6 @@ long long ubifs_get_free_space(struct ubifs_info *c) | |||
766 | min_idx_lebs = c->min_idx_lebs; | 766 | min_idx_lebs = c->min_idx_lebs; |
767 | ubifs_assert(min_idx_lebs == ubifs_calc_min_idx_lebs(c)); | 767 | ubifs_assert(min_idx_lebs == ubifs_calc_min_idx_lebs(c)); |
768 | outstanding = c->budg_data_growth + c->budg_dd_growth; | 768 | outstanding = c->budg_data_growth + c->budg_dd_growth; |
769 | |||
770 | /* | ||
771 | * Force the amount available to the total size reported if the used | ||
772 | * space is zero. | ||
773 | */ | ||
774 | if (c->lst.total_used <= UBIFS_INO_NODE_SZ && !outstanding) { | ||
775 | spin_unlock(&c->space_lock); | ||
776 | return (long long)c->block_cnt << UBIFS_BLOCK_SHIFT; | ||
777 | } | ||
778 | |||
779 | available = ubifs_calc_available(c, min_idx_lebs); | 769 | available = ubifs_calc_available(c, min_idx_lebs); |
780 | 770 | ||
781 | /* | 771 | /* |