summaryrefslogtreecommitdiff
path: root/mm/slab.h
diff options
context:
space:
mode:
authorChristoph Lameter <cl@linux.com>2014-08-07 03:04:11 +0400
committerLinus Torvalds <torvalds@linux-foundation.org>2014-08-07 05:01:13 +0400
commit18bf854117c6caa4d0083bd42411895163467cb9 (patch)
tree8d411ff12caf678b48232673b6c5db4b61b67428 /mm/slab.h
parentfa45dc254bcf740852752effa35387be684947f8 (diff)
downloadlinux-18bf854117c6caa4d0083bd42411895163467cb9.tar.xz
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. [akpm@linux-foundation.org: fix build] 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> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/slab.h')
0 files changed, 0 insertions, 0 deletions