diff options
-rw-r--r-- | mm/slab.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -3048,7 +3048,7 @@ static void *cache_alloc_debugcheck_after(struct kmem_cache *cachep, | |||
3048 | 3048 | ||
3049 | static bool slab_should_failslab(struct kmem_cache *cachep, gfp_t flags) | 3049 | static 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); |