Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=1abd727ed7abf5c19e7d1760671475cbecbccb0e
Commit:     1abd727ed7abf5c19e7d1760671475cbecbccb0e
Parent:     faab83bbcd9e001077e42a7c085f1e871997647f
Author:     Christoph Lameter <[EMAIL PROTECTED]>
AuthorDate: Tue May 15 23:57:03 2007 -0700
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Wed May 16 21:19:15 2007 -0700

    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 <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
---
 include/linux/slub_def.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/linux/slub_def.h b/include/linux/slub_def.h
index fd6627e..c6c1f4a 100644
--- a/include/linux/slub_def.h
+++ b/include/linux/slub_def.h
@@ -88,7 +88,7 @@ static inline int kmalloc_index(int size)
         */
        WARN_ON_ONCE(size == 0);
 
-       if (size >= (1 << KMALLOC_SHIFT_HIGH))
+       if (size > (1 << KMALLOC_SHIFT_HIGH))
                return -1;
 
        if (size > 64 && size <= 96)
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to