From: Pekka Enberg Date: Mon, 29 Dec 2008 09:47:05 +0000 (+0200) Subject: Merge branch 'topic/failslab' into for-linus X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3c506efd7e0f615bd9603ce8c06bc4a896952599;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git Merge branch 'topic/failslab' into for-linus Conflicts: mm/slub.c Signed-off-by: Pekka Enberg --- 3c506efd7e0f615bd9603ce8c06bc4a896952599 diff --cc mm/slub.c index ca95e45f04c3,640fde7e354c..6cb7ad107852 --- a/mm/slub.c +++ b/mm/slub.c @@@ -1595,7 -1592,9 +1596,11 @@@ static __always_inline void *slab_alloc unsigned long flags; unsigned int objsize; + might_sleep_if(gfpflags & __GFP_WAIT); ++ + if (should_failslab(s->objsize, gfpflags)) + return NULL; + local_irq_save(flags); c = get_cpu_slab(s, smp_processor_id()); objsize = c->objsize;