From: Christoph Lameter Date: Tue, 8 Jan 2008 07:20:31 +0000 (-0800) Subject: Explain kmem_cache_cpu fields X-Git-Tag: v2.6.25-rc1~1056^2 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=da89b79ed06bac8e9b5b6874d4efc5382e1091de;p=linux-2.6-omap-h63xx.git Explain kmem_cache_cpu fields Add some comments explaining the fields of the kmem_cache_cpu structure. Signed-off-by: Christoph Lameter Signed-off-by: Andrew Morton --- diff --git a/include/linux/slub_def.h b/include/linux/slub_def.h index a06ee26193c..ddb1a706b14 100644 --- a/include/linux/slub_def.h +++ b/include/linux/slub_def.h @@ -12,11 +12,11 @@ #include struct kmem_cache_cpu { - void **freelist; - struct page *page; - int node; - unsigned int offset; - unsigned int objsize; + 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) */ }; struct kmem_cache_node {