slab: remove colouroff in struct slab
Now there is no user colouroff, so remove it. Acked-by: Andi Kleen <ak@linux.intel.com> Acked-by: Christoph Lameter <cl@linux.com> Signed-off-by: Joonsoo Kim <iamjoonsoo.kim@lge.com> Signed-off-by: Pekka Enberg <penberg@iki.fi>
This commit is contained in:
parent
0c3aa83e00
commit
ac2b54edbc
@ -219,7 +219,6 @@ struct slab {
|
|||||||
union {
|
union {
|
||||||
struct {
|
struct {
|
||||||
struct list_head list;
|
struct list_head list;
|
||||||
unsigned long colouroff;
|
|
||||||
void *s_mem; /* including colour offset */
|
void *s_mem; /* including colour offset */
|
||||||
unsigned int inuse; /* num of objs active in slab */
|
unsigned int inuse; /* num of objs active in slab */
|
||||||
kmem_bufctl_t free;
|
kmem_bufctl_t free;
|
||||||
@ -2630,7 +2629,6 @@ static struct slab *alloc_slabmgmt(struct kmem_cache *cachep,
|
|||||||
colour_off += cachep->slab_size;
|
colour_off += cachep->slab_size;
|
||||||
}
|
}
|
||||||
slabp->inuse = 0;
|
slabp->inuse = 0;
|
||||||
slabp->colouroff = colour_off;
|
|
||||||
slabp->s_mem = addr + colour_off;
|
slabp->s_mem = addr + colour_off;
|
||||||
slabp->nodeid = nodeid;
|
slabp->nodeid = nodeid;
|
||||||
slabp->free = 0;
|
slabp->free = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user