RE: [PATCH] slub: remove a minus instruction in get_partial_node

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




> -----Original Message-----
> From: Christoph Lameter [mailto:cl@xxxxxxxxxx]
> Sent: Thursday, September 29, 2011 10:19 PM
> To: Shi, Alex
> Cc: Pekka Enberg; linux-mm@xxxxxxxxx; Chen, Tim C; Huang, Ying
> Subject: Re: [PATCH] slub: remove a minus instruction in get_partial_node
> 
> On Thu, 29 Sep 2011, Alex,Shi wrote:
> 
> > Don't do a minus action in get_partial_node function here, since
> > it is always zero.
> 
> A slab on the partial lists always has objects available. Why would it be
> zero?

Um, my mistaken. The reason should be: if code is here, the slab will be per cpu slab.
It is no chance to be in per cpu partial and no relationship with per cpu partial. So 
no reason to use this value as a criteria for filling per cpu partial. 

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]