aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZhang, Yanmin <yanmin_zhang@linux.intel.com>2009-07-29 23:28:11 -0400
committerPekka Enberg <penberg@cs.helsinki.fi>2009-08-01 11:26:40 -0400
commitdcb0ce1bdf39581bcd0cffc3d487fb20667977cd (patch)
tree63e7b32f1bb3cd6086c246aa483c80c28a8962fb
parent3de472138a138008b534d9587593ba83390e330a (diff)
slub: change kmem_cache->align to record the real alignment
kmem_cache->align records the original align parameter value specified by users. Function calculate_alignment might change it based on cache line size. So change kmem_cache->align correspondingly. Signed-off-by: Zhang Yanmin <yanmin_zhang@linux.intel.com> Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
-rw-r--r--mm/slub.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mm/slub.c b/mm/slub.c
index a465c0a09fb5..801fe4b9b68d 100644
--- a/mm/slub.c
+++ b/mm/slub.c
@@ -2422,6 +2422,7 @@ static int calculate_sizes(struct kmem_cache *s, int forced_order)
2422 * on bootup. 2422 * on bootup.
2423 */ 2423 */
2424 align = calculate_alignment(flags, align, s->objsize); 2424 align = calculate_alignment(flags, align, s->objsize);
2425 s->align = align;
2425 2426
2426 /* 2427 /*
2427 * SLUB stores one object immediately after another beginning from 2428 * SLUB stores one object immediately after another beginning from