diff options
-rw-r--r-- | mm/slub.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -3028,7 +3028,9 @@ static int kmem_cache_open(struct kmem_cache *s, | |||
3028 | * per node list when we run out of per cpu objects. We only fetch 50% | 3028 | * per node list when we run out of per cpu objects. We only fetch 50% |
3029 | * to keep some capacity around for frees. | 3029 | * to keep some capacity around for frees. |
3030 | */ | 3030 | */ |
3031 | if (s->size >= PAGE_SIZE) | 3031 | if (kmem_cache_debug(s)) |
3032 | s->cpu_partial = 0; | ||
3033 | else if (s->size >= PAGE_SIZE) | ||
3032 | s->cpu_partial = 2; | 3034 | s->cpu_partial = 2; |
3033 | else if (s->size >= 1024) | 3035 | else if (s->size >= 1024) |
3034 | s->cpu_partial = 6; | 3036 | s->cpu_partial = 6; |