]> git.karo-electronics.de Git - karo-tx-linux.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)
commit674e007594ec7c6efa238f590be51a46a3478e29
tree79a133956381135b26651fe6de53d563c9c7505a
parent2e1fc859478c8aa336018871409b77784b6a1b8b
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