[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20110224191052.GY2924@thunk.org>
Date: Thu, 24 Feb 2011 14:10:52 -0500
From: Ted Ts'o <tytso@....edu>
To: Coly Li <i@...y.li>
Cc: linux-ext4@...r.kernel.org, Alex Tomas <alex@...sterfs.com>,
Theodore Tso <tytso@...gle.com>
Subject: Re: [PATCH 5/5] mballoc: don't change cpa if cur_distance is equal
to new_distance
Added to the ext4 patch queue, albeit with a rewritten patch
description.
- Ted
commit 5a54b2f199fdf19533f96c3e285b70c6729e1e4a
Author: Coly Li <colyli@...il.com>
Date: Thu Feb 24 14:10:05 2011 -0500
ext4: mballoc: don't replace the current preallocation group unnecessarily
In ext4_mb_check_group_pa(), the current preallocation space is
replaced with a new preallocation space when the two have the same
distance from the goal block.
This doesn't actually gain us anything, so change things so that the
function only switches to the new preallocation group if its distance
from the goal block is strictly smaller than the current preallocaiton
group's distance from the goal block.
Signed-off-by: Coly Li <bosong.ly@...bao.com>
Signed-off-by: "Theodore Ts'o" <tytso@....edu>
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists