summaryrefslogtreecommitdiffstats
path: root/include/linux/slub_def.h
diff options
context:
space:
mode:
authorChristoph Lameter <clameter@sgi.com>2008-02-15 23:45:26 -0800
committerChristoph Lameter <clameter@sgi.com>2008-03-03 12:22:32 -0800
commit6446faa2ff30ca77c5b25e886bbbfb81c63f1c91 (patch)
treed8c29dec4b1395a313cd71e5185f656f7e8abbb6 /include/linux/slub_def.h
parentd8b42bf54be18b5d0bad941b3a1d3e8f022651a7 (diff)
downloadop-kernel-dev-6446faa2ff30ca77c5b25e886bbbfb81c63f1c91.zip
op-kernel-dev-6446faa2ff30ca77c5b25e886bbbfb81c63f1c91.tar.gz
slub: Fix up comments
Provide comments and fix up various spelling / style issues. Signed-off-by: Christoph Lameter <clameter@sgi.com>
Diffstat (limited to 'include/linux/slub_def.h')
-rw-r--r--include/linux/slub_def.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/slub_def.h b/include/linux/slub_def.h
index 57deecc..b00c1c7 100644
--- a/include/linux/slub_def.h
+++ b/include/linux/slub_def.h
@@ -61,7 +61,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 order;
+ int order; /* Current preferred allocation order */
/*
* Avoid an extra cache line for UP, SMP and for the node local to
@@ -138,11 +138,11 @@ static __always_inline int kmalloc_index(size_t size)
if (size <= 512) return 9;
if (size <= 1024) return 10;
if (size <= 2 * 1024) return 11;
+ if (size <= 4 * 1024) return 12;
/*
* The following is only needed to support architectures with a larger page
* size than 4k.
*/
- if (size <= 4 * 1024) return 12;
if (size <= 8 * 1024) return 13;
if (size <= 16 * 1024) return 14;
if (size <= 32 * 1024) return 15;
OpenPOWER on IntegriCloud