Skip to contentSkip to conversation

mm: slab: convert slab_is_available to boolean

PATCH In review Denis Kirjanov 2 participants 2 messages Sep 15, 2015 – Sep 16, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mm: slab: convert slab_is_available to boolean

A good one candidate to return a boolean result

---
 include/linux/slab.h | 2 +-
 mm/slab_common.c     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
include/linux/slab.h +1 -1
index 7e37d44..7c82e3b 100644
@@ -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,
mm/slab_common.c +1 -1
index 5ce4fae..113a6fd 100644
@@ -692,7 +692,7 @@ int kmem_cache_shrink(struct kmem_cache *cachep)
 }
 EXPORT_SYMBOL(kmem_cache_shrink);
 
-int slab_is_available(void)
+bool slab_is_available(void)
 {
 	return slab_state >= UP;
 }
Signature · 7 lines
2.4.0

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>