slub: correct comments error for per cpu partial
authorAlex Shi <alex.shi@intel.com>
Thu, 1 Sep 2011 03:32:18 +0000 (11:32 +0800)
committerPekka Enberg <penberg@kernel.org>
Tue, 27 Sep 2011 20:03:30 +0000 (23:03 +0300)
Correct comment errors, that mistake cpu partial objects number as pages
number, may make reader misunderstand.

Signed-off-by: Alex Shi <alex.shi@intel.com>
Reviewed-by: Christoph Lameter <cl@linux.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
include/linux/slub_def.h
mm/slub.c

index 4890ef79d7523721d2164429ee0a94ab55268060..a32bcfdc783499d1f44f30f01b53468f75be8d56 100644 (file)
@@ -82,7 +82,7 @@ struct kmem_cache {
        int size;               /* The size of an object including meta data */
        int objsize;            /* The size of an object without meta data */
        int offset;             /* Free pointer offset. */
-       int cpu_partial;        /* Number of per cpu partial pages to keep around */
+       int cpu_partial;        /* Number of per cpu partial objects to keep around */
        struct kmem_cache_order_objects oo;
 
        /* Allocation and freeing of slabs */
index 4982fb5c91dea290dc262dd62bfce8b5e7d92c40..8f687575d3104ad85dc07192fc929c77d9f7387d 100644 (file)
--- a/mm/slub.c
+++ b/mm/slub.c
@@ -3084,7 +3084,7 @@ static int kmem_cache_open(struct kmem_cache *s,
         *
         * A) The number of objects from per cpu partial slabs dumped to the
         *    per node list when we reach the limit.
-        * B) The number of objects in partial partial slabs to extract from the
+        * B) The number of objects in cpu partial slabs to extract from the
         *    per node list when we run out of per cpu objects. We only fetch 50%
         *    to keep some capacity around for frees.
         */
This page took 0.032712 seconds and 5 git commands to generate.