slab: Use page struct fields instead of casting
authorChristoph Lameter <cl@linux.com>
Wed, 13 Jun 2012 15:24:55 +0000 (10:24 -0500)
committerPekka Enberg <penberg@kernel.org>
Thu, 14 Jun 2012 06:19:56 +0000 (09:19 +0300)
commite571b0ad3495be5793e54e21cd244c4545c49d88
tree4ea18038e9543483d4f31519cf95f9d633ca0ef7
parentb5568280c9b9162b384be9d447013b74d682d4b3
slab: Use page struct fields instead of casting

Add fields to the page struct so that it is properly documented that
slab overlays the lru fields.

This cleans up some casts in slab.

Reviewed-by: Glauber Costa <glommer@parallels.com>
Reviewed-by: Joonsoo Kim <js1304@gmail.com>
Signed-off-by: Christoph Lameter <cl@linux.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
include/linux/mm_types.h
mm/slab.c