summaryrefslogtreecommitdiffstats
path: root/include/linux/mm_types.h
diff options
context:
space:
mode:
authorChristoph Lameter2012-06-13 17:24:55 +0200
committerPekka Enberg2012-06-14 08:19:56 +0200
commite571b0ad3495be5793e54e21cd244c4545c49d88 (patch)
tree4ea18038e9543483d4f31519cf95f9d633ca0ef7 /include/linux/mm_types.h
parentslob: Remove various small accessors (diff)
downloadkernel-qcow2-linux-e571b0ad3495be5793e54e21cd244c4545c49d88.tar.gz
kernel-qcow2-linux-e571b0ad3495be5793e54e21cd244c4545c49d88.tar.xz
kernel-qcow2-linux-e571b0ad3495be5793e54e21cd244c4545c49d88.zip
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>
Diffstat (limited to 'include/linux/mm_types.h')
-rw-r--r--include/linux/mm_types.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/mm_types.h b/include/linux/mm_types.h
index 5922c3452592..680a5e4e8cd5 100644
--- a/include/linux/mm_types.h
+++ b/include/linux/mm_types.h
@@ -110,6 +110,10 @@ struct page {
};
struct list_head list; /* slobs list of pages */
+ struct { /* slab fields */
+ struct kmem_cache *slab_cache;
+ struct slab *slab_page;
+ };
};
/* Remainder is not double word aligned */