From: Ted Ts'o <tytso@mit.edu>
To: Coly Li <i@coly.li>
Cc: linux-ext4@vger.kernel.org, Alex Tomas <alex@clusterfs.com>,
Theodore Tso <tytso@google.com>
Subject: Re: [PATCH 5/5] mballoc: don't change cpa if cur_distance is equal to new_distance
Date: Thu, 24 Feb 2011 14:10:52 -0500 [thread overview]
Message-ID: <20110224191052.GY2924@thunk.org> (raw)
In-Reply-To: <4D4E297A.8090801@coly.li>
Added to the ext4 patch queue, albeit with a rewritten patch
description.
- Ted
commit 5a54b2f199fdf19533f96c3e285b70c6729e1e4a
Author: Coly Li <colyli@gmail.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@taobao.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
prev parent reply other threads:[~2011-02-24 19:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-06 4:54 [PATCH 5/5] mballoc: don't change cpa if cur_distance is equal to new_distance Coly Li
2011-02-24 19:10 ` Ted Ts'o [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110224191052.GY2924@thunk.org \
--to=tytso@mit.edu \
--cc=alex@clusterfs.com \
--cc=i@coly.li \
--cc=linux-ext4@vger.kernel.org \
--cc=tytso@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.