Re: [PATCH 1/2] SLUB: remove hard coded magic numbers from resiliency_test

2012-10-16 Thread Christoph Lameter
On Mon, 15 Oct 2012, David Rientjes wrote: > On Mon, 15 Oct 2012, Christoph Lameter wrote: > > > > Use the always inlined function kmalloc_index to translate > > > sizes to indexes, so that we don't have to have the slab indexes > > > hard coded in two places. > > > > Acked-by: Christoph Lameter

Re: [PATCH 1/2] SLUB: remove hard coded magic numbers from resiliency_test

2012-10-15 Thread David Rientjes
On Mon, 15 Oct 2012, Christoph Lameter wrote: > > Use the always inlined function kmalloc_index to translate > > sizes to indexes, so that we don't have to have the slab indexes > > hard coded in two places. > > Acked-by: Christoph Lameter > Shouldn't this be using get_slab() instead? -- To un

Re: [PATCH 1/2] SLUB: remove hard coded magic numbers from resiliency_test

2012-10-15 Thread Christoph Lameter
On Sat, 13 Oct 2012, Richard Kennedy wrote: > Use the always inlined function kmalloc_index to translate > sizes to indexes, so that we don't have to have the slab indexes > hard coded in two places. Acked-by: Christoph Lameter -- To unsubscribe from this list: send the line "unsubscribe linux-k