|
@@ -446,18 +446,18 @@ void __init create_kmalloc_caches(unsigned long flags)
|
|
|
if (!kmalloc_caches[i]) {
|
|
|
kmalloc_caches[i] = create_kmalloc_cache(NULL,
|
|
|
1 << i, flags);
|
|
|
+ }
|
|
|
|
|
|
- /*
|
|
|
- * Caches that are not of the two-to-the-power-of size.
|
|
|
- * These have to be created immediately after the
|
|
|
- * earlier power of two caches
|
|
|
- */
|
|
|
- if (KMALLOC_MIN_SIZE <= 32 && !kmalloc_caches[1] && i == 6)
|
|
|
- kmalloc_caches[1] = create_kmalloc_cache(NULL, 96, flags);
|
|
|
+ /*
|
|
|
+ * Caches that are not of the two-to-the-power-of size.
|
|
|
+ * These have to be created immediately after the
|
|
|
+ * earlier power of two caches
|
|
|
+ */
|
|
|
+ if (KMALLOC_MIN_SIZE <= 32 && !kmalloc_caches[1] && i == 6)
|
|
|
+ kmalloc_caches[1] = create_kmalloc_cache(NULL, 96, flags);
|
|
|
|
|
|
- if (KMALLOC_MIN_SIZE <= 64 && !kmalloc_caches[2] && i == 7)
|
|
|
- kmalloc_caches[2] = create_kmalloc_cache(NULL, 192, flags);
|
|
|
- }
|
|
|
+ if (KMALLOC_MIN_SIZE <= 64 && !kmalloc_caches[2] && i == 7)
|
|
|
+ kmalloc_caches[2] = create_kmalloc_cache(NULL, 192, flags);
|
|
|
}
|
|
|
|
|
|
/* Kmalloc array is now usable */
|