From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail144.messagelabs.com (mail144.messagelabs.com [216.82.254.51]) by kanga.kvack.org (Postfix) with SMTP id BEF6E6B0142 for ; Thu, 18 Mar 2010 05:08:01 -0400 (EDT) Received: by gwj21 with SMTP id 21so12607gwj.14 for ; Thu, 18 Mar 2010 02:07:58 -0700 (PDT) From: Akinobu Mita Subject: [PATCH 07/12] slab: convert cpu notifier to return encapsulate errno value Date: Thu, 18 Mar 2010 18:05:19 +0900 Message-Id: <1268903124-10237-7-git-send-email-akinobu.mita@gmail.com> In-Reply-To: <1268903124-10237-1-git-send-email-akinobu.mita@gmail.com> References: <1268903124-10237-1-git-send-email-akinobu.mita@gmail.com> Sender: owner-linux-mm@kvack.org To: linux-kernel@vger.kernel.org, akpm@linux-foundation.org Cc: Akinobu Mita , Christoph Lameter , Pekka Enberg , Matt Mackall , linux-mm@kvack.org List-ID: 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 Cc: Pekka Enberg Cc: Matt Mackall Cc: linux-mm@kvack.org --- mm/slab.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/mm/slab.c b/mm/slab.c index a9f325b..d57309e 100644 --- a/mm/slab.c +++ b/mm/slab.c @@ -1324,7 +1324,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 = { -- 1.6.0.6 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org