diff options
Diffstat (limited to 'mm')
-rw-r--r-- | mm/slob.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -634,6 +634,14 @@ int kmem_ptr_validate(struct kmem_cache *a, const void *b) | |||
634 | return 0; | 634 | return 0; |
635 | } | 635 | } |
636 | 636 | ||
637 | static unsigned int slob_ready __read_mostly; | ||
638 | |||
639 | int slab_is_available(void) | ||
640 | { | ||
641 | return slob_ready; | ||
642 | } | ||
643 | |||
637 | void __init kmem_cache_init(void) | 644 | void __init kmem_cache_init(void) |
638 | { | 645 | { |
646 | slob_ready = 1; | ||
639 | } | 647 | } |