mm: slab: convert slab_is_available to boolean
Subsystems (2)
PATCH 1/1 mm: slab: convert slab_is_available to boolean
A good one candidate to return a boolean result
Signed-off-by Denis Kirjanov <[email protected]>
--- include/linux/slab.h | 2 +- mm/slab_common.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
include/linux/slab.h +1 -1
@@ -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
@@ -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>
Quoted 3 lines · Denis Kirjanov
A good one candidate to return a boolean result
Signed-off-by Denis Kirjanov <[email protected]>
Reviewed-by Pekka Enberg <[email protected]>