Commit da89b79e authored by Christoph Lameter's avatar Christoph Lameter

Explain kmem_cache_cpu fields

Add some comments explaining the fields of the kmem_cache_cpu structure.
Signed-off-by: default avatarChristoph Lameter <clameter@sgi.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent ba84c73c
...@@ -12,11 +12,11 @@ ...@@ -12,11 +12,11 @@
#include <linux/kobject.h> #include <linux/kobject.h>
struct kmem_cache_cpu { struct kmem_cache_cpu {
void **freelist; void **freelist; /* Pointer to first free per cpu object */
struct page *page; struct page *page; /* The slab from which we are allocating */
int node; int node; /* The node of the page (or -1 for debug) */
unsigned int offset; unsigned int offset; /* Freepointer offset (in word units) */
unsigned int objsize; unsigned int objsize; /* Size of an object (from kmem_cache) */
}; };
struct kmem_cache_node { struct kmem_cache_node {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment