From 427dde95296db69af39f66ce9829ddb03c100548 Mon Sep 17 00:00:00 2001 From: Christoph Lameter Date: Mon, 7 Jan 2008 23:20:31 -0800 Subject: [PATCH] Explain kmem_cache_cpu fields Add some comments explaining the fields of the kmem_cache_cpu structure. Signed-off-by: Chrsitoph Lameter Signed-off-by: Andrew Morton --- include/linux/slub_def.h | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/linux/slub_def.h b/include/linux/slub_def.h index f345707..0c4748b 100644 --- a/include/linux/slub_def.h +++ b/include/linux/slub_def.h @@ -12,12 +12,12 @@ #include struct kmem_cache_cpu { - void **freelist; - struct page *page; - int node; - unsigned int offset; - unsigned int objsize; - unsigned int objects; + void **freelist; /* Pointer to first free per cpu object */ + struct page *page; /* The slab from which we are allocating */ + int node; /* The node of the page (or -1 for debug) */ + unsigned int offset; /* Freepointer offset (in word units) */ + unsigned int objsize; /* Size of an object (from kmem_cache) */ + unsigned int objects; /* Objects per slab (from kmem_cache) */ }; struct kmem_cache_node { -- debian.1.5.3.7.1-dirty