aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mm/slab.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/slab.c b/mm/slab.c
index 66b3ffbb890d..7d07942b9804 100644
--- a/mm/slab.c
+++ b/mm/slab.c
@@ -3048,7 +3048,7 @@ static void *cache_alloc_debugcheck_after(struct kmem_cache *cachep,
3048 3048
3049static bool slab_should_failslab(struct kmem_cache *cachep, gfp_t flags) 3049static bool slab_should_failslab(struct kmem_cache *cachep, gfp_t flags)
3050{ 3050{
3051 if (cachep == kmem_cache) 3051 if (unlikely(cachep == kmem_cache))
3052 return false; 3052 return false;
3053 3053
3054 return should_failslab(cachep->object_size, flags, cachep->flags); 3054 return should_failslab(cachep->object_size, flags, cachep->flags);