From: Yasunori Goto <y-goto@jp.fujitsu.com>
To: linux-mm@kvack.org
Subject: [PATCH/RFC 2/2] Remove pgdat list
Date: Fri, 13 May 2005 16:27:00 +0900 [thread overview]
Message-ID: <20050513160619.5227.Y-GOTO@jp.fujitsu.com> (raw)
This patch is moving NODE_DATA()'s definition in include/linux/mmzone.h
to use for_each_pgdat or for_each_zone.
Signed-off-by: Yasunori Goto <y-goto@jp.fujitsu.com>
---
pgdat_link-goto/include/linux/mmzone.h | 28 ++++++++++++++--------------
1 files changed, 14 insertions(+), 14 deletions(-)
diff -puN include/linux/mmzone.h~move_node_data include/linux/mmzone.h
--- pgdat_link/include/linux/mmzone.h~move_node_data 2005-05-13 12:09:34.996172040 +0900
+++ pgdat_link-goto/include/linux/mmzone.h 2005-05-13 12:13:33.006988896 +0900
@@ -304,6 +304,20 @@ unsigned long __init node_memmap_size_by
*/
#define zone_idx(zone) ((zone) - (zone)->zone_pgdat->node_zones)
+#ifndef CONFIG_NEED_MULTIPLE_NODES
+
+extern struct pglist_data contig_page_data;
+#define NODE_DATA(nid) (&contig_page_data)
+#define NODE_MEM_MAP(nid) mem_map
+#define MAX_NODES_SHIFT 1
+#define pfn_to_nid(pfn) (0)
+
+#else /* CONFIG_NEED_MULTIPLE_NODES */
+
+#include <asm/mmzone.h>
+
+#endif /* !CONFIG_NEED_MULTIPLE_NODES */
+
#define first_online_pgdat() NODE_DATA(first_online_node())
#define next_online_pgdat(pgdat) \
((next_online_node((pgdat)->node_id) != MAX_NUMNODES) ? \
@@ -403,20 +417,6 @@ int lowmem_reserve_ratio_sysctl_handler(
/* Returns the number of the current Node. */
#define numa_node_id() (cpu_to_node(_smp_processor_id()))
-#ifndef CONFIG_NEED_MULTIPLE_NODES
-
-extern struct pglist_data contig_page_data;
-#define NODE_DATA(nid) (&contig_page_data)
-#define NODE_MEM_MAP(nid) mem_map
-#define MAX_NODES_SHIFT 1
-#define pfn_to_nid(pfn) (0)
-
-#else /* CONFIG_NEED_MULTIPLE_NODES */
-
-#include <asm/mmzone.h>
-
-#endif /* !CONFIG_NEED_MULTIPLE_NODES */
-
#ifdef CONFIG_SPARSEMEM
#include <asm/sparsemem.h>
#endif
_
--
Yasunori Goto
--
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:"aart@kvack.org"> aart@kvack.org </a>
reply other threads:[~2005-05-13 7:27 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20050513160619.5227.Y-GOTO@jp.fujitsu.com \
--to=y-goto@jp.fujitsu.com \
--cc=linux-mm@kvack.org \
/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