git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
650ed50
)
UBIFS: avoid unnecessary calculations
author
Artem Bityutskiy
<Artem.Bityutskiy@nokia.com>
Fri, 19 Dec 2008 14:11:13 +0000
(16:11 +0200)
committer
Artem Bityutskiy
<Artem.Bityutskiy@nokia.com>
Tue, 23 Dec 2008 10:24:16 +0000
(12:24 +0200)
Do not calculate min_idx_lebs, because it is available in
c->min_idx_lebs
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
fs/ubifs/budget.c
patch
|
blob
|
history
diff --git
a/fs/ubifs/budget.c
b/fs/ubifs/budget.c
index
0bcb803
..
44cff80
100644
(file)
--- a/
fs/ubifs/budget.c
+++ b/
fs/ubifs/budget.c
@@
-763,7
+763,8
@@
long long ubifs_get_free_space(struct ubifs_info *c)
long long available, outstanding, free;
spin_lock(&c->space_lock);
- min_idx_lebs = ubifs_calc_min_idx_lebs(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;
/*