From: Akinobu Mita Date: Wed, 26 May 2010 21:43:32 +0000 (-0700) Subject: slab: convert cpu notifier to return encapsulate errno value X-Git-Tag: v2.6.35-rc1~144 X-Git-Url: http://bbs.cooldavid.org/git/?a=commitdiff_plain;h=eac4068013a067f5fb63005033c13b27fbf6dfca;p=net-next-2.6.git slab: convert cpu notifier to return encapsulate errno value By the previous modification, the cpu notifier can return encapsulate errno value. This converts the cpu notifiers for slab. Signed-off-by: Akinobu Mita Cc: Christoph Lameter Acked-by: Pekka Enberg Cc: Matt Mackall Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/slab.c b/mm/slab.c index 8270ba3d198..6437d89a840 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 = {