* [PATCH 07/12] slab: convert cpu notifier to return encapsulate errno value [not found] <1268903124-10237-1-git-send-email-akinobu.mita@gmail.com> @ 2010-03-18 9:05 ` Akinobu Mita 2010-03-18 17:21 ` Pekka Enberg 0 siblings, 1 reply; 2+ messages in thread From: Akinobu Mita @ 2010-03-18 9:05 UTC (permalink / raw) To: linux-kernel, akpm Cc: Akinobu Mita, Christoph Lameter, Pekka Enberg, Matt Mackall, linux-mm 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> Cc: 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> ^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 07/12] slab: convert cpu notifier to return encapsulate errno value 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 0 siblings, 0 replies; 2+ messages in thread From: Pekka Enberg @ 2010-03-18 17:21 UTC (permalink / raw) To: Akinobu Mita Cc: linux-kernel, akpm, Christoph Lameter, Matt Mackall, linux-mm 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> ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-03-18 17:21 UTC | newest] Thread overview: 2+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [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 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).