Tag: 85556c9a503ababa889bd7bb7a9b3effba795d00

ext4: use kmem_cache_zalloc instead of kmem_cache_alloc/memset

Author: Wei Yongjun <yongjun_wei@trendmicro.com.cn> 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 Signed-off-by: “Theodore Ts’o” — fs/ext4/mballoc.c | 6 ++—- 1 file changed, 2 insertions(+), 4 deletions(-)   diff –git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c index bb821a9..8ec6f88 100644 — a/fs/ext4/mballoc.c +++ b/fs/ext4/mballoc.c @@ -2232,12 …

Continue reading