From b2a190395b8d91b42a647052c1e8875ff2f3624b Mon Sep 17 00:00:00 2001 From: Coly Li Date: Thu, 24 Feb 2011 14:10:05 -0500 Subject: [PATCH] --- yaml --- r: 242365 b: refs/heads/master c: 5a54b2f199fdf19533f96c3e285b70c6729e1e4a h: refs/heads/master i: 242363: 17ab5d0c4961caf8b8b9e0da7fbd8f972aa67f96 v: v3 --- [refs] | 2 +- trunk/fs/ext4/mballoc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index aebfd69d040d..f56d49c71f74 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 58696f3ab2b23fd6519189875fafdb5d1281eb54 +refs/heads/master: 5a54b2f199fdf19533f96c3e285b70c6729e1e4a diff --git a/trunk/fs/ext4/mballoc.c b/trunk/fs/ext4/mballoc.c index b5235c8a2e78..66bee7274d6a 100644 --- a/trunk/fs/ext4/mballoc.c +++ b/trunk/fs/ext4/mballoc.c @@ -3213,7 +3213,7 @@ ext4_mb_check_group_pa(ext4_fsblk_t goal_block, cur_distance = abs(goal_block - cpa->pa_pstart); new_distance = abs(goal_block - pa->pa_pstart); - if (cur_distance < new_distance) + if (cur_distance <= new_distance) return cpa; /* drop the previous reference */