summaryrefslogtreecommitdiffstats
path: root/mm/mempool.c
diff options
context:
space:
mode:
authorJoonsoo Kim2014-08-07 01:04:22 +0200
committerLinus Torvalds2014-08-07 03:01:14 +0200
commit25c063fbd5512eb7190bf5af88351109aededb3f (patch)
tree861c20931ee12c950cc56d64c9965dd630c277bb /mm/mempool.c
parentslab: add unlikely macro to help compiler (diff)
downloadkernel-qcow2-linux-25c063fbd5512eb7190bf5af88351109aededb3f.tar.gz
kernel-qcow2-linux-25c063fbd5512eb7190bf5af88351109aededb3f.tar.xz
kernel-qcow2-linux-25c063fbd5512eb7190bf5af88351109aededb3f.zip
slab: move up code to get kmem_cache_node in free_block()
node isn't changed, so we don't need to retreive this structure everytime we move the object. Maybe compiler do this optimization, but making it explicitly is better. Signed-off-by: Joonsoo Kim <iamjoonsoo.kim@lge.com> Acked-by: Christoph Lameter <cl@linux.com> Cc: Pekka Enberg <penberg@kernel.org> Acked-by: David Rientjes <rientjes@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/mempool.c')
0 files changed, 0 insertions, 0 deletions