Skip to contentSkip to conversation

mm, slab: Use kmem_cache_zalloc() instead of kmem_cache_alloc() with flag GFP_ZERO.

PATCH Alexey Dobriyan 1 participant 1 message Jun 17, 2020

lore
Share & tools
lore
#0 lore raw

Review

Quoted 5 lines

static inline void *kmem_cache_zalloc(struct kmem_cache *k, gfp_t flags) {

(quoted diff) +1 -1
-	return kmem_cache_alloc(k, flags | __GFP_ZERO);
+	return kmem_cache_zalloc(k, flags);
 }

That's a good one.