diff options
author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2008-12-19 16:11:13 +0200 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2008-12-23 12:24:16 +0200 |
commit | c8f915913afdfe1a796e312e21658b8edcf20868 (patch) | |
tree | 0a4cc7716e12b6ae0eb93940c2d4f638ca5c21a3 /fs | |
parent | 650ed50f4298e76007070b7ab9d640dfe7228ab3 (diff) | |
download | kernel_samsung_smdk4412-c8f915913afdfe1a796e312e21658b8edcf20868.zip kernel_samsung_smdk4412-c8f915913afdfe1a796e312e21658b8edcf20868.tar.gz kernel_samsung_smdk4412-c8f915913afdfe1a796e312e21658b8edcf20868.tar.bz2 |
UBIFS: avoid unnecessary calculations
Do not calculate min_idx_lebs, because it is available in
c->min_idx_lebs
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/ubifs/budget.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/ubifs/budget.c b/fs/ubifs/budget.c index 0bcb803..44cff80 100644 --- 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; /* |