[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4DB63349.3070808@gmail.com>
Date: Tue, 26 Apr 2011 14:51:53 +1200
From: Michael Schmitz <schmitzmic@...glemail.com>
To: David Rientjes <rientjes@...gle.com>
CC: Michael Schmitz <schmitzmic@...glemail.com>,
Geert Uytterhoeven <geert@...ux-m68k.org>,
Andrew Morton <akpm@...ux-foundation.org>,
Roman Zippel <zippel@...ux-m68k.org>,
linux-m68k@...r.kernel.org, linux-kernel@...r.kernel.org,
schwab@...ux-m68k.org,
"tg@...bsd.de >> Thorsten Glaser" <tg@...bsd.de>
Subject: Re: [patch] m68k, mm: set all online nodes in N_NORMAL_MEMORY
David Rientjes wrote:
> Ok, would you like to write a changelog for this similar to mine and then
> propose it as an alternative?
>
> Thanks!
>
Will this one do?
Cheers,
Michael
commit 99b9c43cfb18a8e2222e9ef80b04a5c3e1dad254
Author: Michael Schmitz <schmitz@...ian.org>
Date: Tue Apr 26 14:51:54 2011 +1200
[m68k] For m68k, N_NORMAL_MEMORY represents all nodes that have
present memory
since it does not support HIGHMEM. This patch sets the bit at
the time
node_present_pages has been set by free_area_init_node.
At the time the node is brought online, the the node state would
have to
be done unconditionally since information about present memory
has not yet
been recorded.
If N_NORMAL_MEMORY is not accurate, slub may encounter errors
since it
uses this nodemask to setup per-cache kmem_cache_node data
structures.
This pach is an alternative to the one proposed by David
Rientjes <rientjes@...gle.com>
attempting to set node state immediately when bringing the node
online.
Signed-off-by: Michael Schmitz <schmitz@...ian.org>
---
arch/m68k/mm/motorola.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/arch/m68k/mm/motorola.c b/arch/m68k/mm/motorola.c
index 02b7a03..b806c19 100644
--- a/arch/m68k/mm/motorola.c
+++ b/arch/m68k/mm/motorola.c
@@ -300,6 +300,8 @@ void __init paging_init(void)
zones_size[ZONE_DMA] = m68k_memory[i].size >> PAGE_SHIFT;
free_area_init_node(i, zones_size,
m68k_memory[i].addr >> PAGE_SHIFT,
NULL);
+ if (node_present_pages(i))
+ node_set_state(i, N_NORMAL_MEMORY);
}
}
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists