]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: use kmem_cache_zalloc instead of kmem_cache_alloc/memset
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Thu, 27 Sep 2012 00:43:37 +0000 (20:43 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 27 Sep 2012 00:43:37 +0000 (20:43 -0400)
commitfc55834ca83772e82978d3914bd08fd06e6b18f2
treec006a06209ee01d2ea46f8a6000d18742cceb640
parentb7703d12cb50812b532a672562982adcf4358588
ext4: use kmem_cache_zalloc instead of kmem_cache_alloc/memset

Using kmem_cache_zalloc() instead of kmem_cache_alloc() and memset().

spatch with a semantic match is used to found this problem.
(http://coccinelle.lip6.fr/)

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/mballoc.c