diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-04 09:48:21 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-04 09:48:21 -0700 |
commit | 3ea9eed49346eb80f17f1c6539c47dc508be1173 (patch) | |
tree | a3e82cc6e3deded667a7eda071894c1ddf079db7 /include/linux | |
parent | 852bb9f594e0ea737f83487962a040ad210e8a13 (diff) | |
parent | 41d54d3bf83f62d3ff5948cb788fe6007e66a0d0 (diff) | |
download | kernel_samsung_espresso10-3ea9eed49346eb80f17f1c6539c47dc508be1173.zip kernel_samsung_espresso10-3ea9eed49346eb80f17f1c6539c47dc508be1173.tar.gz kernel_samsung_espresso10-3ea9eed49346eb80f17f1c6539c47dc508be1173.tar.bz2 |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/penberg/slab-2.6
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/penberg/slab-2.6:
slub: Do not use 192 byte sized cache if minimum alignment is 128 byte
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/slub_def.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/slub_def.h b/include/linux/slub_def.h index 71e43a1..cef6f8f 100644 --- a/include/linux/slub_def.h +++ b/include/linux/slub_def.h @@ -137,10 +137,12 @@ static __always_inline int kmalloc_index(size_t size) if (size <= KMALLOC_MIN_SIZE) return KMALLOC_SHIFT_LOW; +#if KMALLOC_MIN_SIZE <= 64 if (size > 64 && size <= 96) return 1; if (size > 128 && size <= 192) return 2; +#endif if (size <= 8) return 3; if (size <= 16) return 4; if (size <= 32) return 5; |