aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorChristoph Lameter <clameter@sgi.com>2007-07-17 07:03:28 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-07-17 13:23:01 -0400
commit12ad6843dd145050231ec5a27fe326c2085f9095 (patch)
tree36159963da99f44f34b6bb9c7c1a294b2a56642f /mm
parent5af328a51067d8dc574c2b2c2629dd436a1e841e (diff)
SLUB: Style fix up the loop to disable small slabs
Do proper spacing and we only need to do this in steps of 8. Signed-off-by: Christoph Lameter <clameter@sgi.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r--mm/slub.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/slub.c b/mm/slub.c
index b1635f929b87..bb278c886927 100644
--- a/mm/slub.c
+++ b/mm/slub.c
@@ -2578,7 +2578,7 @@ void __init kmem_cache_init(void)
2578 BUILD_BUG_ON(KMALLOC_MIN_SIZE > 256 || 2578 BUILD_BUG_ON(KMALLOC_MIN_SIZE > 256 ||
2579 (KMALLOC_MIN_SIZE & (KMALLOC_MIN_SIZE - 1))); 2579 (KMALLOC_MIN_SIZE & (KMALLOC_MIN_SIZE - 1)));
2580 2580
2581 for (i = 8; i < KMALLOC_MIN_SIZE;i++) 2581 for (i = 8; i < KMALLOC_MIN_SIZE; i += 8)
2582 size_index[(i - 1) / 8] = KMALLOC_SHIFT_LOW; 2582 size_index[(i - 1) / 8] = KMALLOC_SHIFT_LOW;
2583 2583
2584 slab_state = UP; 2584 slab_state = UP;