linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Pekka Enberg <penberg@cs.helsinki.fi>
To: Akinobu Mita <akinobu.mita@gmail.com>
Cc: linux-kernel@vger.kernel.org, akpm@linux-foundation.org,
	Christoph Lameter <cl@linux-foundation.org>,
	Matt Mackall <mpm@selenic.com>,
	linux-mm@kvack.org
Subject: Re: [PATCH 07/12] slab: convert cpu notifier to return encapsulate errno value
Date: Thu, 18 Mar 2010 19:21:18 +0200	[thread overview]
Message-ID: <84144f021003181021t54b0c5baj2947f007c1b48a62@mail.gmail.com> (raw)
In-Reply-To: <1268903124-10237-7-git-send-email-akinobu.mita@gmail.com>

On Thu, Mar 18, 2010 at 11:05 AM, Akinobu Mita <akinobu.mita@gmail.com> wrote:
> By the previous modification, the cpu notifier can return encapsulate
> errno value. This converts the cpu notifiers for slab.
>
> Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
> Cc: Christoph Lameter <cl@linux-foundation.org>

Acked-by: Pekka Enberg <penberg@cs.helsinki.fi>

> Cc: Matt Mackall <mpm@selenic.com>
> 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: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
>

--
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: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

      reply	other threads:[~2010-03-18 17:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1268903124-10237-1-git-send-email-akinobu.mita@gmail.com>
2010-03-18  9:05 ` [PATCH 07/12] slab: convert cpu notifier to return encapsulate errno value Akinobu Mita
2010-03-18 17:21   ` Pekka Enberg [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=84144f021003181021t54b0c5baj2947f007c1b48a62@mail.gmail.com \
    --to=penberg@cs.helsinki.fi \
    --cc=akinobu.mita@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=cl@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=mpm@selenic.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).