Re: [PATCH] mm, slab: Drop unnecessary slabp->inuse < cachep->num test

2013-07-01 Thread Christoph Lameter
On Tue, 2 Jul 2013, Zhang Yanfei wrote: > From: Zhang Yanfei > > In function cache_alloc_refill, we have used BUG_ON to ensure > that slabp->inuse is less than cachep->num before the while > test. And in the while body, we do not change the value of > slabp->inuse and cachep->num, so it is not ne

Re: [PATCH] mm, slab: Drop unnecessary slabp->inuse < cachep->num test

2013-07-01 Thread Zhang Yanfei
Sorry for making noise. I've made a mistake and please ignore this patch. On 07/02/2013 12:29 AM, Zhang Yanfei wrote: > From: Zhang Yanfei > > In function cache_alloc_refill, we have used BUG_ON to ensure > that slabp->inuse is less than cachep->num before the while > test. And in the while body

[PATCH] mm, slab: Drop unnecessary slabp->inuse < cachep->num test

2013-07-01 Thread Zhang Yanfei
From: Zhang Yanfei In function cache_alloc_refill, we have used BUG_ON to ensure that slabp->inuse is less than cachep->num before the while test. And in the while body, we do not change the value of slabp->inuse and cachep->num, so it is not necessary to test if slabp->inuse < cachep->num test f