Re: [PATCH 04/16] slab: remove nodeid in struct slab

2013-08-22 Thread Joonsoo Kim
On Thu, Aug 22, 2013 at 05:51:58PM +, Christoph Lameter wrote: > On Thu, 22 Aug 2013, Joonsoo Kim wrote: > > > @@ -1099,8 +1098,7 @@ static void drain_alien_cache(struct kmem_cache > > *cachep, > > > > static inline int cache_free_alien(struct kmem_cache *cachep, void *objp) > > { > > - s

Re: [PATCH 04/16] slab: remove nodeid in struct slab

2013-08-22 Thread Christoph Lameter
On Thu, 22 Aug 2013, Joonsoo Kim wrote: > @@ -1099,8 +1098,7 @@ static void drain_alien_cache(struct kmem_cache *cachep, > > static inline int cache_free_alien(struct kmem_cache *cachep, void *objp) > { > - struct slab *slabp = virt_to_slab(objp); > - int nodeid = slabp->nodeid; > +

[PATCH 04/16] slab: remove nodeid in struct slab

2013-08-22 Thread Joonsoo Kim
We can get nodeid using address translation, so this field is not useful. Therefore, remove it. Signed-off-by: Joonsoo Kim diff --git a/mm/slab.c b/mm/slab.c index d9f81a0..69dc25a 100644 --- a/mm/slab.c +++ b/mm/slab.c @@ -222,7 +222,6 @@ struct slab { void *s_mem;