aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mm/slab_common.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/mm/slab_common.c b/mm/slab_common.c
index d2517b05d5bc..ff3218a0f5e1 100644
--- a/mm/slab_common.c
+++ b/mm/slab_common.c
@@ -446,18 +446,18 @@ void __init create_kmalloc_caches(unsigned long flags)
446 if (!kmalloc_caches[i]) { 446 if (!kmalloc_caches[i]) {
447 kmalloc_caches[i] = create_kmalloc_cache(NULL, 447 kmalloc_caches[i] = create_kmalloc_cache(NULL,
448 1 << i, flags); 448 1 << i, flags);
449 }
449 450
450 /* 451 /*
451 * Caches that are not of the two-to-the-power-of size. 452 * Caches that are not of the two-to-the-power-of size.
452 * These have to be created immediately after the 453 * These have to be created immediately after the
453 * earlier power of two caches 454 * earlier power of two caches
454 */ 455 */
455 if (KMALLOC_MIN_SIZE <= 32 && !kmalloc_caches[1] && i == 6) 456 if (KMALLOC_MIN_SIZE <= 32 && !kmalloc_caches[1] && i == 6)
456 kmalloc_caches[1] = create_kmalloc_cache(NULL, 96, flags); 457 kmalloc_caches[1] = create_kmalloc_cache(NULL, 96, flags);
457 458
458 if (KMALLOC_MIN_SIZE <= 64 && !kmalloc_caches[2] && i == 7) 459 if (KMALLOC_MIN_SIZE <= 64 && !kmalloc_caches[2] && i == 7)
459 kmalloc_caches[2] = create_kmalloc_cache(NULL, 192, flags); 460 kmalloc_caches[2] = create_kmalloc_cache(NULL, 192, flags);
460 }
461 } 461 }
462 462
463 /* Kmalloc array is now usable */ 463 /* Kmalloc array is now usable */