]> git.karo-electronics.de Git - karo-tx-linux.git/commit
slab: use get_node() and kmem_cache_node() functions
authorChristoph Lameter <cl@linux.com>
Thu, 26 Jun 2014 00:42:26 +0000 (10:42 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 26 Jun 2014 00:42:26 +0000 (10:42 +1000)
commitdd24a8020fab9573dcf9f01a64911978b9350e74
tree3e9eab485d2b9297d66076b1999e6110182f961e
parente3bbbab5b73a64abb66b5fa94b3c5bc896b40ac6
slab: use get_node() and kmem_cache_node() functions

Use the two functions to simplify the code avoiding numerous explicit
checks coded checking for a certain node to be online.

Get rid of various repeated calculations of kmem_cache_node structures.

Signed-off-by: Christoph Lameter <cl@linux.com>
Cc: Christoph Lameter <cl@linux.com>
Cc: Pekka Enberg <penberg@kernel.org>
Acked-by: David Rientjes <rientjes@google.com>
Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/slab.c