Commit fda90124 authored by Denis Kirjanov's avatar Denis Kirjanov Committed by Linus Torvalds

slab: convert slab_is_available() to boolean

A good candidate to return a boolean result.
Signed-off-by: default avatarDenis Kirjanov <>
Cc: Christoph Lameter <>
Reviewed-by: default avatarPekka Enberg <>
Cc: David Rientjes <>
Cc: Joonsoo Kim <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 39d2da21
......@@ -111,7 +111,7 @@ struct mem_cgroup;
* struct kmem_cache related prototypes
void __init kmem_cache_init(void);
int slab_is_available(void);
bool slab_is_available(void);
struct kmem_cache *kmem_cache_create(const char *, size_t, size_t,
unsigned long,
......@@ -692,7 +692,7 @@ int kmem_cache_shrink(struct kmem_cache *cachep)
int slab_is_available(void)
bool slab_is_available(void)
return slab_state >= UP;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment