linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Christoph Lameter <clameter@engr.sgi.com>
To: Adam Litke <agl@us.ibm.com>
Cc: linux-mm@kvack.org, ak@suse.de, linux-kernel@vger.kernel.org,
	kenneth.w.chen@intel.com, wli@holomorphy.com
Subject: Re: [RFC] NUMA memory policy support for HUGE pages
Date: Mon, 14 Nov 2005 15:25:00 -0800 (PST)	[thread overview]
Message-ID: <Pine.LNX.4.62.0511141523100.4676@schroedinger.engr.sgi.com> (raw)
In-Reply-To: <1132007410.13502.35.camel@localhost.localdomain>

On Mon, 14 Nov 2005, Adam Litke wrote:

> On Mon, 2005-11-14 at 13:46 -0800, Christoph Lameter wrote:
> > This is V2 of the patch.
> > 
> > Changes:
> > 
> > - Cleaned up by folding find_or_alloc() into hugetlb_no_page().
> 
> IMHO this is not really a cleanup.  When the demand fault patch stack
> was first accepted, we decided to separate out find_or_alloc_huge_page()
> because it has the page_cache retry loop with several exit conditions.
> no_page() has its own backout logic and mixing the two makes for a
> tangled mess.  Can we leave that hunk out please?

It seemed to me that find_or_alloc_huge_pages has a pretty simple backout 
logic that folds nicely into no_page(). Both functions share a lot of 
variables and putting them together not only increases the readability of 
the code but also makes the function smaller and execution more efficient.

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

  reply	other threads:[~2005-11-14 23:25 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-11 18:56 Christoph Lameter
2005-11-11 20:28 ` Christoph Lameter
2005-11-14 15:06   ` Adam Litke
2005-11-14 18:09     ` Christoph Lameter
2005-11-14 21:46     ` Christoph Lameter
2005-11-14 22:30       ` Adam Litke
2005-11-14 23:25         ` Christoph Lameter [this message]
2005-11-15 12:18           ` William Lee Irwin III
2005-11-11 21:23 ` William Lee Irwin III

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=Pine.LNX.4.62.0511141523100.4676@schroedinger.engr.sgi.com \
    --to=clameter@engr.sgi.com \
    --cc=agl@us.ibm.com \
    --cc=ak@suse.de \
    --cc=kenneth.w.chen@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=wli@holomorphy.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox