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

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

Advertisement

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

Filename:/mm/slab.c
Lines Added:1
Lines Deleted:2
Also changed in: (Previous) 2.6.25-rc1  2.6.24.2  2.6.24-git22  2.6.24-git21  2.6.24-git20  2.6.24.1 
(Following) 2.6.25-rc2  2.6.25-rc3  2.6.25-rc4  2.6.25-rc4-git3  2.6.25-rc5  2.6.25-rc4-git4 

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

Patch

diff --git a/mm/slab.c b/mm/slab.c
index 40c00da..473e6c2 100644
--- a/mm/slab.c
+++ b/mm/slab.c
@@ -2630,6 +2630,7 @@ static struct slab *alloc_slabmgmt(struct kmem_cache *cachep, void *objp,
    slabp->colouroff = colour_off;
    slabp->s_mem = objp + colour_off;
    slabp->nodeid = nodeid;
+   slabp->free = 0;
    return slabp;
 }
 
@@ -2683,7 +2684,6 @@ static void cache_init_objs(struct kmem_cache *cachep,
       slab_bufctl(slabp)[i] = i + 1;
    }
    slab_bufctl(slabp)[i - 1] = BUFCTL_END;
-   slabp->free = 0;
 }
 
 static void kmem_flagcheck(struct kmem_cache *cachep, gfp_t flags)
@@ -2816,7 +2816,6 @@ static int cache_grow(struct kmem_cache *cachep,
    if (!slabp)
       goto opps1;
 
-   slabp->nodeid = nodeid;
    slab_map_pages(cachep, slabp, objp);
 
    cache_init_objs(cachep, slabp);


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