diff options
author | Pekka Enberg <penberg@kernel.org> | 2012-01-11 14:11:29 -0500 |
---|---|---|
committer | Pekka Enberg <penberg@kernel.org> | 2012-01-11 14:11:29 -0500 |
commit | 5878cf431ca7233a56819ca6970153ac0b129599 (patch) | |
tree | e5d21d04a0b468d2dabbe3a3824f23b5537fc6a7 /mm/slub.c | |
parent | 74ee4ef1f901fbb014bdcdc9171d126490ce2b62 (diff) | |
parent | b13683d1cc14d1dd30b8e20f3ebea3f814ad029f (diff) |
Merge branch 'slab/urgent' into slab/for-linus
Diffstat (limited to 'mm/slub.c')
-rw-r--r-- | mm/slub.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -3043,7 +3043,9 @@ static int kmem_cache_open(struct kmem_cache *s, | |||
3043 | * per node list when we run out of per cpu objects. We only fetch 50% | 3043 | * per node list when we run out of per cpu objects. We only fetch 50% |
3044 | * to keep some capacity around for frees. | 3044 | * to keep some capacity around for frees. |
3045 | */ | 3045 | */ |
3046 | if (s->size >= PAGE_SIZE) | 3046 | if (kmem_cache_debug(s)) |
3047 | s->cpu_partial = 0; | ||
3048 | else if (s->size >= PAGE_SIZE) | ||
3047 | s->cpu_partial = 2; | 3049 | s->cpu_partial = 2; |
3048 | else if (s->size >= 1024) | 3050 | else if (s->size >= 1024) |
3049 | s->cpu_partial = 6; | 3051 | s->cpu_partial = 6; |