Commit:     84a01c2f8ea9bf210b961c6301e8e870a46505a6
Parent:     5dc4ac6324094cd52dc77ddf88296a94b90bbafc
Author:     Paul Mundt <[EMAIL PROTECTED]>
AuthorDate: Sun Jul 15 23:38:24 2007 -0700
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Mon Jul 16 09:05:36 2007 -0700

    slob: sparsemem support
    Currently slob is disabled if we're using sparsemem, due to an earlier
    patch from Goto-san.  Slob and static sparsemem work without any trouble as
    it is, and the only hiccup is a missing slab_is_available() in the case of
    sparsemem extreme.  With this, we're rid of the last set of restrictions
    for slob usage.
    Signed-off-by: Paul Mundt <[EMAIL PROTECTED]>
    Acked-by: Pekka Enberg <[EMAIL PROTECTED]>
    Acked-by: Matt Mackall <[EMAIL PROTECTED]>
    Cc: Christoph Lameter <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
 init/Kconfig |    2 +-
 mm/slob.c    |    8 ++++++++
 2 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/init/Kconfig b/init/Kconfig
index d9d878a..63d52a0 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -576,7 +576,7 @@ config SLUB
           and has enhanced diagnostics.
 config SLOB
-       depends on EMBEDDED && !SPARSEMEM
+       depends on EMBEDDED
        bool "SLOB (Simple Allocator)"
           SLOB replaces the SLAB allocator with a drastically simpler
diff --git a/mm/slob.c b/mm/slob.c
index b99b0ef..b489907 100644
--- a/mm/slob.c
+++ b/mm/slob.c
@@ -634,6 +634,14 @@ int kmem_ptr_validate(struct kmem_cache *a, const void *b)
        return 0;
+static unsigned int slob_ready __read_mostly;
+int slab_is_available(void)
+       return slob_ready;
 void __init kmem_cache_init(void)
+       slob_ready = 1;
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

Reply via email to