From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Tue, 30 Oct 2007 11:54:55 -0700 (PDT) From: Christoph Lameter Subject: SLUB: Comment kmem_cache_cpu structure Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org Return-Path: To: akpm@linux-foundation.org Cc: linux-mm@kvack.org List-ID: Add some comments explaining the fields of the kmem_cache_cpu structure. Signed-off-by: Chrsitoph Lameter Index: linux-2.6/include/linux/slub_def.h =================================================================== --- linux-2.6.orig/include/linux/slub_def.h 2007-10-30 11:51:20.000000000 -0700 +++ linux-2.6/include/linux/slub_def.h 2007-10-30 11:53:48.000000000 -0700 @@ -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 { -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org