Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 125475
b: refs/heads/master
c: 2edc202
h: refs/heads/master
i:
  125473: 31a118f
  125471: cfaa846
v: v3
  • Loading branch information
Artem Bityutskiy authored and Artem Bityutskiy committed Dec 31, 2008
1 parent 85a6e0d commit 54a0dd5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6edbfafda682b30ad984964cc432da6fa1c8fab5
refs/heads/master: 2edc2025c2583a18eafe5cdbc7deb36e320aaec5
10 changes: 0 additions & 10 deletions trunk/fs/ubifs/budget.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

/*
Expand Down

0 comments on commit 54a0dd5

Please sign in to comment.