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

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

Advertisement

Kernel v2.6.25-rc4-git4 /mm/slab.c

Filename:/mm/slab.c
Lines Added:4
Lines Deleted:5
Also changed in: (Previous) 2.6.25-rc5  2.6.25-rc4-git3  2.6.25-rc4  2.6.25-rc3  2.6.25-rc2  2.6.25-rc1-git4 
(Following) 2.6.25-rc6  2.6.25-rc6-git4  2.6.25-rc6-git5  2.6.25-rc6-git6  2.6.25-rc6-git7  2.6.25-rc6-git8 

Location
[  2.6.25-rc4-git4
  [  mm
     o  slab.c

Patch

diff --git a/mm/slab.c b/mm/slab.c
index 473e6c2..e6c698f 100644
--- a/mm/slab.c
+++ b/mm/slab.c
@@ -333,7 +333,7 @@ static __always_inline int index_of(const size_t size)
       return i; \
    else \
       i++;
-#include "linux/kmalloc_sizes.h"
+#include <linux/kmalloc_sizes.h>
 #undef CACHE
       __bad_size();
    } else
@@ -2964,11 +2964,10 @@ static void *cache_alloc_refill(struct kmem_cache *cachep, gfp_t flags)
    struct array_cache *ac;
    int node;
 
-   node = numa_node_id();
-
+retry:
    check_irq_off();
+   node = numa_node_id();
    ac = cpu_cache_get(cachep);
-retry:
    batchcount = ac->batchcount;
    if (!ac->touched && batchcount > BATCHREFILL_LIMIT) {
       /*
@@ -3280,7 +3279,7 @@ retry:
       if (local_flags & __GFP_WAIT)
          local_irq_enable();
       kmem_flagcheck(cache, flags);
-      obj = kmem_getpages(cache, flags, -1);
+      obj = kmem_getpages(cache, local_flags, -1);
       if (local_flags & __GFP_WAIT)
          local_irq_disable();
       if (obj) {


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