aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Lameter <clameter@sgi.com>2007-05-16 02:57:03 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-05-17 00:19:15 -0400
commit1abd727ed7abf5c19e7d1760671475cbecbccb0e (patch)
tree0ec7364ea4171a39bdd00c6f140ec31a0602ca58
parentfaab83bbcd9e001077e42a7c085f1e871997647f (diff)
SLUB: It is legit to allocate a slab of the maximum permitted size
Sorry I screwed up the comparison. It is only an error if we attempt to allocate a slab larger than the maximum allowed size. Signed-off-by: Christoph Lameter <clameter@sgi.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r--include/linux/slub_def.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/slub_def.h b/include/linux/slub_def.h
index fd6627e2d115..c6c1f4a120e3 100644
--- a/include/linux/slub_def.h
+++ b/include/linux/slub_def.h
@@ -88,7 +88,7 @@ static inline int kmalloc_index(int size)
88 */ 88 */
89 WARN_ON_ONCE(size == 0); 89 WARN_ON_ONCE(size == 0);
90 90
91 if (size >= (1 << KMALLOC_SHIFT_HIGH)) 91 if (size > (1 << KMALLOC_SHIFT_HIGH))
92 return -1; 92 return -1;
93 93
94 if (size > 64 && size <= 96) 94 if (size > 64 && size <= 96)