Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.6.24-rc8-git8 /mm/slab.c

Filename:/mm/slab.c
Lines Added:3
Lines Deleted:3
Also changed in: (Previous) 2.6.24-rc8  2.6.24-rc7  2.6.24-rc6-git12  2.6.24-rc6-git11  2.6.24-rc6-git10  2.6.24-rc6-git9 
(Following) 2.6.24  2.6.24-git1  2.6.24-git2  2.6.24-git3  2.6.24-git4  2.6.24-git5 

Location
[  2.6.24-rc8-git8
  [  mm
     o  slab.c

Patch

diff --git a/mm/slab.c b/mm/slab.c
index aebb9f6..b03b2e4 100644
--- a/mm/slab.c
+++ b/mm/slab.c
@@ -1590,7 +1590,7 @@ void __init kmem_cache_init(void)
       /* Replace the static kmem_list3 structures for the boot cpu */
       init_list(&cache_cache, &initkmem_list3[CACHE_CACHE], node);
 
-      for_each_node_state(nid, N_NORMAL_MEMORY) {
+      for_each_online_node(nid) {
          init_list(malloc_sizes[INDEX_AC].cs_cachep,
               &initkmem_list3[SIZE_AC + nid], nid);
 
@@ -1968,7 +1968,7 @@ static void __init set_up_list3s(struct kmem_cache *cachep, int index)
 {
    int node;
 
-   for_each_node_state(node, N_NORMAL_MEMORY) {
+   for_each_online_node(node) {
       cachep->nodelists[node] = &initkmem_list3[index + node];
       cachep->nodelists[node]->next_reap = jiffies +
           REAPTIMEOUT_LIST3 +
@@ -3815,7 +3815,7 @@ static int alloc_kmemlist(struct kmem_cache *cachep)
    struct array_cache *new_shared;
    struct array_cache **new_alien = NULL;
 
-   for_each_node_state(node, N_NORMAL_MEMORY) {
+   for_each_online_node(node) {
 
                 if (use_alien_caches) {
                         new_alien = alloc_alien_cache(node, cachep->limit);


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.