From: Jes Sorensen <jes@sgi.com>
To: Christoph Lameter <clameter@sgi.com>
Cc: akpm@linux-foundation.org, kxr@sgi.com, linux-mm@kvack.org,
Nishanth Aravamudan <nacc@us.ibm.com>,
Lee Schermerhorn <Lee.Schermerhorn@hp.com>
Subject: Re: [patch 08/12] Uncached allocator: Handle memoryless nodes
Date: Wed, 11 Jul 2007 10:37:44 +0200 [thread overview]
Message-ID: <469496D8.6040802@sgi.com> (raw)
In-Reply-To: <20070710215455.870757833@sgi.com>
Christoph Lameter wrote:
> The checks for node_online in the uncached allocator are made to make sure
> that memory is available on these nodes. Thus switch all the checks to use
> the node_memory and for_each_memory_node functions.
>
> Cc: jes@sgi.com
> Signed-off-by: Christoph Lameter <clameter@sgi.com>
I'm fine with this:
Signed-off-by: Jes Sorensen <jes@sgi.com>
Jes
> ---
> arch/ia64/kernel/uncached.c | 4 ++--
> drivers/char/mspec.c | 2 +-
> 2 files changed, 3 insertions(+), 3 deletions(-)
>
> Index: linux-2.6.22-rc6-mm1/arch/ia64/kernel/uncached.c
> ===================================================================
> --- linux-2.6.22-rc6-mm1.orig/arch/ia64/kernel/uncached.c 2007-06-24 16:21:48.000000000 -0700
> +++ linux-2.6.22-rc6-mm1/arch/ia64/kernel/uncached.c 2007-07-09 22:24:42.000000000 -0700
> @@ -196,7 +196,7 @@ unsigned long uncached_alloc_page(int st
> nid = starting_nid;
>
> do {
> - if (!node_online(nid))
> + if (!node_state(nid, N_MEMORY))
> continue;
> uc_pool = &uncached_pools[nid];
> if (uc_pool->pool == NULL)
> @@ -268,7 +268,7 @@ static int __init uncached_init(void)
> {
> int nid;
>
> - for_each_online_node(nid) {
> + for_each_node_state(nid, N_ONLINE) {
> uncached_pools[nid].pool = gen_pool_create(PAGE_SHIFT, nid);
> mutex_init(&uncached_pools[nid].add_chunk_mutex);
> }
> Index: linux-2.6.22-rc6-mm1/drivers/char/mspec.c
> ===================================================================
> --- linux-2.6.22-rc6-mm1.orig/drivers/char/mspec.c 2007-07-03 17:19:24.000000000 -0700
> +++ linux-2.6.22-rc6-mm1/drivers/char/mspec.c 2007-07-09 22:24:42.000000000 -0700
> @@ -353,7 +353,7 @@ mspec_init(void)
> is_sn2 = 1;
> if (is_shub2()) {
> ret = -ENOMEM;
> - for_each_online_node(nid) {
> + for_each_node_state(nid, N_ONLINE) {
> int actual_nid;
> int nasid;
> unsigned long phys;
>
--
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>
next prev parent reply other threads:[~2007-07-11 8:37 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20070710215339.110895755@sgi.com>
[not found] ` <20070710215456.394842768@sgi.com>
2007-07-11 7:48 ` [patch 10/12] Memoryless nodes: Update memory policy and page migration KAMEZAWA Hiroyuki
2007-07-11 16:16 ` Nishanth Aravamudan
2007-07-11 16:37 ` Nishanth Aravamudan
2007-07-11 17:35 ` Christoph Lameter
[not found] ` <20070710215456.642568985@sgi.com>
2007-07-11 8:06 ` [patch 11/12] Memoryless nodes: Fix GFP_THISNODE behavior KAMEZAWA Hiroyuki
2007-07-11 17:45 ` Christoph Lameter
[not found] ` <20070710215455.870757833@sgi.com>
2007-07-11 8:37 ` Jes Sorensen [this message]
[not found] ` <20070710215454.355598739@sgi.com>
2007-07-11 16:17 ` [patch 02/12] NUMA: Introduce node_memory_map Nishanth Aravamudan
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=469496D8.6040802@sgi.com \
--to=jes@sgi.com \
--cc=Lee.Schermerhorn@hp.com \
--cc=akpm@linux-foundation.org \
--cc=clameter@sgi.com \
--cc=kxr@sgi.com \
--cc=linux-mm@kvack.org \
--cc=nacc@us.ibm.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.