X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-kernel.git;a=blobdiff_plain;f=mm%2Fslab.c;h=6437d89a8401fe1ab46ec7c365cbc63ab6567e8e;hp=02786e1a32d26952d66c2dfff80013adf51ccb9e;hb=eac4068013a067f5fb63005033c13b27fbf6dfca;hpb=4961ab934a1254b1ad9420cea0ded617b57f022b diff --git a/mm/slab.c b/mm/slab.c index 02786e1a32d2..6437d89a8401 100644 --- a/mm/slab.c +++ b/mm/slab.c @@ -1321,7 +1321,7 @@ static int __cpuinit cpuup_callback(struct notifier_block *nfb, mutex_unlock(&cache_chain_mutex); break; } - return err ? NOTIFY_BAD : NOTIFY_OK; + return notifier_from_errno(err); } static struct notifier_block __cpuinitdata cpucache_notifier = { @@ -3219,7 +3219,7 @@ static void *alternate_node_alloc(struct kmem_cache *cachep, gfp_t flags) nid_alloc = nid_here = numa_node_id(); get_mems_allowed(); if (cpuset_do_slab_mem_spread() && (cachep->flags & SLAB_MEM_SPREAD)) - nid_alloc = cpuset_mem_spread_node(); + nid_alloc = cpuset_slab_spread_node(); else if (current->mempolicy) nid_alloc = slab_node(current->mempolicy); put_mems_allowed();