Skip to content
Commit 9de1bc87 authored by Joonsoo Kim's avatar Joonsoo Kim Committed by Pekka Enberg
Browse files

mm, slab_common: add 'unlikely' to size check of kmalloc_slab()



Size is usually below than KMALLOC_MAX_SIZE.
If we add a 'unlikely' macro, compiler can make better code.

Acked-by: default avatarChristoph Lameter <cl@linux.com>
Signed-off-by: default avatarJoonsoo Kim <iamjoonsoo.kim@lge.com>
Signed-off-by: default avatarPekka Enberg <penberg@kernel.org>
parent 68f06650
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment