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-Url: https://git.stricted.de/?a=commitdiff_plain;h=eac4068013a067f5fb63005033c13b27fbf6dfca;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.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 8270ba3d1986..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 = {