Skip to content

Commit da89b79

Browse files
author
Christoph Lameter
committed
Explain kmem_cache_cpu fields
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>
1 parent ba84c73 commit da89b79

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎include/linux/slub_def.h‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
#include <linux/kobject.h>
1313

1414
struct kmem_cache_cpu {
15-
void **freelist;
16-
struct page *page;
17-
int node;
18-
unsigned int offset;
19-
unsigned int objsize;
15+
void **freelist; /* Pointer to first free per cpu object */
16+
struct page *page; /* The slab from which we are allocating */
17+
int node; /* The node of the page (or -1 for debug) */
18+
unsigned int offset; /* Freepointer offset (in word units) */
19+
unsigned int objsize; /* Size of an object (from kmem_cache) */
2020
};
2121

2222
struct kmem_cache_node {

0 commit comments

Comments
 (0)