lkml.org 
[lkml]   [2002]   [Jul]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[patch] MAX_NR_NODES name change
This patch changes MAX_NR_NODES to be NR_NODES, so as to be more consistent 
with the naming of NR_CPUS. It is easier to change this one as it only appears
in 3 places and NR_CPUS appears all over the place.

Cheers!

-Matt
diff -Nur linux-2.5.29-vanilla/include/linux/mmzone.h linux-2.5.29-patched/include/linux/mmzone.h
--- linux-2.5.29-vanilla/include/linux/mmzone.h Fri Jul 26 19:58:25 2002
+++ linux-2.5.29-patched/include/linux/mmzone.h Wed Jul 31 17:09:20 2002
@@ -167,14 +167,14 @@

#define NODE_DATA(nid) (&contig_page_data)
#define NODE_MEM_MAP(nid) mem_map
-#define MAX_NR_NODES 1
+#define NR_NODES 1

#else /* !CONFIG_DISCONTIGMEM */

#include <asm/mmzone.h>

/* page->zone is currently 8 bits ... */
-#define MAX_NR_NODES (255 / MAX_NR_ZONES)
+#define NR_NODES (255 / MAX_NR_ZONES)

#endif /* !CONFIG_DISCONTIGMEM */

diff -Nur linux-2.5.29-vanilla/mm/page_alloc.c linux-2.5.29-patched/mm/page_alloc.c
--- linux-2.5.29-vanilla/mm/page_alloc.c Fri Jul 26 19:58:27 2002
+++ linux-2.5.29-patched/mm/page_alloc.c Wed Jul 31 17:09:00 2002
@@ -34,7 +34,7 @@
* Used by page_zone() to look up the address of the struct zone whose
* id is encoded in the upper bits of page->flags
*/
-zone_t *zone_table[MAX_NR_ZONES*MAX_NR_NODES];
+zone_t *zone_table[MAX_NR_ZONES*NR_NODES];
EXPORT_SYMBOL(zone_table);

static char *zone_names[MAX_NR_ZONES] = { "DMA", "Normal", "HighMem" };
\
 
 \ /
  Last update: 2005-03-22 13:27    [W:0.023 / U:0.380 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site