diff options
author | Curt Wohlgemuth <curtw@google.com> | 2010-05-16 16:00:00 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2010-05-16 16:00:00 -0400 |
commit | 291dae472a8976ff461f24c848fee2a03f9ea3c8 (patch) | |
tree | 74926cf247344af2ad825a71f25787d61a0d503e /fs/ext4/mballoc.c | |
parent | 8a57d9d61a6e361c7bb159dda797672c1df1a691 (diff) |
ext4: Fix for ext4_mb_collect_stats()
Fix ext4_mb_collect_stats() to use the correct test for s_bal_success; it
should be testing "best-extent.fe_len >= orig-extent.fe_len" , not
"orig-extent.fe_len >= goal-extent.fe_len" .
Signed-off-by: Curt Wohlgemuth <curtw@google.org>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/mballoc.c')
-rw-r--r-- | fs/ext4/mballoc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c index aa499fe11687..e5dcdc9bd56b 100644 --- a/fs/ext4/mballoc.c +++ b/fs/ext4/mballoc.c | |||
@@ -3029,7 +3029,7 @@ static void ext4_mb_collect_stats(struct ext4_allocation_context *ac) | |||
3029 | if (sbi->s_mb_stats && ac->ac_g_ex.fe_len > 1) { | 3029 | if (sbi->s_mb_stats && ac->ac_g_ex.fe_len > 1) { |
3030 | atomic_inc(&sbi->s_bal_reqs); | 3030 | atomic_inc(&sbi->s_bal_reqs); |
3031 | atomic_add(ac->ac_b_ex.fe_len, &sbi->s_bal_allocated); | 3031 | atomic_add(ac->ac_b_ex.fe_len, &sbi->s_bal_allocated); |
3032 | if (ac->ac_o_ex.fe_len >= ac->ac_g_ex.fe_len) | 3032 | if (ac->ac_b_ex.fe_len >= ac->ac_o_ex.fe_len) |
3033 | atomic_inc(&sbi->s_bal_success); | 3033 | atomic_inc(&sbi->s_bal_success); |
3034 | atomic_add(ac->ac_found, &sbi->s_bal_ex_scanned); | 3034 | atomic_add(ac->ac_found, &sbi->s_bal_ex_scanned); |
3035 | if (ac->ac_g_ex.fe_start == ac->ac_b_ex.fe_start && | 3035 | if (ac->ac_g_ex.fe_start == ac->ac_b_ex.fe_start && |