diff options
author | Rasmus Villemoes <linux@rasmusvillemoes.dk> | 2015-06-24 16:55:59 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-06-24 17:49:41 -0700 |
commit | 1ed58b6051b67e5cfe9e465fb60bf7d5f55e0a64 (patch) | |
tree | e02b09bb91bdf776141019e38d49a42e9a379cff /include/linux/slab.h | |
parent | 34cc6990d4d2d85f60e583ebe3070f8c3ada465c (diff) | |
download | op-kernel-dev-1ed58b6051b67e5cfe9e465fb60bf7d5f55e0a64.zip op-kernel-dev-1ed58b6051b67e5cfe9e465fb60bf7d5f55e0a64.tar.gz |
linux/slab.h: fix three off-by-one typos in comment
The first is a keyboard-off-by-one, the other two the ordinary mathy kind.
Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Acked-by: Christoph Lameter <cl@linux.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/slab.h')
-rw-r--r-- | include/linux/slab.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/slab.h b/include/linux/slab.h index 96f0ea5..9de2fdc 100644 --- a/include/linux/slab.h +++ b/include/linux/slab.h @@ -262,8 +262,8 @@ extern struct kmem_cache *kmalloc_dma_caches[KMALLOC_SHIFT_HIGH + 1]; * belongs to. * 0 = zero alloc * 1 = 65 .. 96 bytes - * 2 = 120 .. 192 bytes - * n = 2^(n-1) .. 2^n -1 + * 2 = 129 .. 192 bytes + * n = 2^(n-1)+1 .. 2^n */ static __always_inline int kmalloc_index(size_t size) { |