On Fri, 25 Jun 2010 16:20:30 -0500 Christoph Lameter <cl@xxxxxxxxxxxxxxxxxxxx> wrote: > kmalloc_node() and friends can be passed a constant -1 to indicate > that no choice was made for the node from which the object needs to > come. > > Use NUMA_NO_NODE instead of -1. > > Signed-off-by: David Rientjes <rientjes@xxxxxxxxxx> > Signed-off-by: Christoph Lameter <cl@xxxxxxxxxxxxxxxxxxxx> > Reviewd-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@xxxxxxxxxxxxxx> How about more updates ? Hmm, by grep (mmotm) == static struct page *get_partial(struct kmem_cache *s, gfp_t flags, int node) { struct page *page; int searchnode = (node == -1) ? numa_node_id() : node; == == static inline int node_match(struct kmem_cache_cpu *c, int node) { #ifdef CONFIG_NUMA if (node != -1 && c->node != node) return 0; #endif return 1; } == == debug: if (!alloc_debug_processing(s, c->page, object, addr)) goto another_slab; c->page->inuse++; c->page->freelist = get_freepointer(s, object); c->node = -1; goto unlock_out; } == Thanks, -Kame -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxxx For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>