summaryrefslogtreecommitdiffstats
path: root/mm/slab.h
diff options
context:
space:
mode:
authorChristoph Lameter2014-08-07 01:04:11 +0200
committerLinus Torvalds2014-08-07 03:01:13 +0200
commit18bf854117c6caa4d0083bd42411895163467cb9 (patch)
tree8d411ff12caf678b48232673b6c5db4b61b67428 /mm/slab.h
parentslub: use new node functions (diff)
downloadkernel-qcow2-linux-18bf854117c6caa4d0083bd42411895163467cb9.tar.gz
kernel-qcow2-linux-18bf854117c6caa4d0083bd42411895163467cb9.tar.xz
kernel-qcow2-linux-18bf854117c6caa4d0083bd42411895163467cb9.zip
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