Re: [patch 04/10] SLUB: Avoid checking for a valid object before zeroing on the fast path

2007-10-28 Thread Pekka J Enberg
On Sat, 27 Oct 2007, Christoph Lameter wrote: > The fast path always results in a valid object. Move the check > for the NULL pointer to the slow branch that calls > __slab_alloc. Only __slab_alloc can return NULL if there is no > memory available anymore and that case is exceedingly rare. Reviewe

[patch 04/10] SLUB: Avoid checking for a valid object before zeroing on the fast path

2007-10-27 Thread Christoph Lameter
The fast path always results in a valid object. Move the check for the NULL pointer to the slow branch that calls __slab_alloc. Only __slab_alloc can return NULL if there is no memory available anymore and that case is exceedingly rare. Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> --- mm