]> git.baikalelectronics.ru Git - kernel.git/commit
mm/slab.c: add a helper function get_first_slab
authorGeliang Tang <geliangtang@163.com>
Thu, 14 Jan 2016 23:18:02 +0000 (15:18 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 15 Jan 2016 00:00:49 +0000 (16:00 -0800)
commit66f8354da981b0b1559dcf5308a9622a4029c7f5
tree6cda7f570983465f883ffd5c768b63a8a5dafa7f
parentc1e4c6c7330e5f578b85eae0fdbdcf0dbb73de8c
mm/slab.c: add a helper function get_first_slab

Add a new helper function get_first_slab() that get the first slab from
a kmem_cache_node.

Signed-off-by: Geliang Tang <geliangtang@163.com>
Acked-by: Christoph Lameter <cl@linux.com>
Acked-by: David Rientjes <rientjes@google.com>
Cc: Pekka Enberg <penberg@kernel.org>
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