]> git.baikalelectronics.ru Git - kernel.git/commit
slab: use get_node() and kmem_cache_node() functions
authorChristoph Lameter <cl@linux.com>
Wed, 6 Aug 2014 23:04:11 +0000 (16:04 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 7 Aug 2014 01:01:13 +0000 (18:01 -0700)
commita03d81a3d0a896e3b1b2ae05a6fd10bd519b470d
tree8d411ff12caf678b48232673b6c5db4b61b67428
parentdcac3bca078553394a99420929a54872b10161e1
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>
mm/slab.c