From: Christoph Lameter Date: Tue, 17 Jul 2007 11:03:28 +0000 (-0700) Subject: SLUB: Style fix up the loop to disable small slabs X-Git-Tag: firefly_0821_release~27935 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=12ad6843dd145050231ec5a27fe326c2085f9095;p=firefly-linux-kernel-4.4.55.git 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- 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) BUILD_BUG_ON(KMALLOC_MIN_SIZE > 256 || (KMALLOC_MIN_SIZE & (KMALLOC_MIN_SIZE - 1))); - for (i = 8; i < KMALLOC_MIN_SIZE;i++) + for (i = 8; i < KMALLOC_MIN_SIZE; i += 8) size_index[(i - 1) / 8] = KMALLOC_SHIFT_LOW; slab_state = UP;