]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
Explain kmem_cache_cpu fields
authorChristoph Lameter <clameter@sgi.com>
Tue, 8 Jan 2008 07:20:31 +0000 (23:20 -0800)
committerChristoph Lameter <clameter@sgi.com>
Mon, 4 Feb 2008 18:56:03 +0000 (10:56 -0800)
Add some comments explaining the fields of the kmem_cache_cpu structure.

Signed-off-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/slub_def.h

index a06ee26193c24687552ba5f44ab700ed052dc832..ddb1a706b144036dd1805eac5baa66784adbbc29 100644 (file)
 #include <linux/kobject.h>
 
 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 {