Tag: c4418daca7a27474eda4a926f0645054516c7d7f

staging: lustre: osc: Replace kmem_cache_alloc with kmem_cache_zalloc

Author: Amitoj Kaur Chawla <amitoj1606@gmail.com> Use kmem_cache_zalloc instead of manually setting kmem_cache_alloc with flag GFP_ZERO since kmem_alloc_zalloc sets allocated memory to zero. The Coccinelle semantic patch used to make this change is as follows: // @@ expression e,f; @@ – kmem_cache_alloc(e, f |__GFP_ZERO) + kmem_cache_zalloc(e, f) // Signed-off-by: Amitoj Kaur Chawla Signed-off-by: Greg Kroah-Hartman — …

Continue reading