jbd: use kmem_cache_zalloc for allocating journal head
authorZheng Liu <wenqing.lz@taobao.com>
Mon, 29 Apr 2013 09:08:51 +0000 (17:08 +0800)
committerJan Kara <jack@suse.cz>
Mon, 29 Apr 2013 12:34:05 +0000 (14:34 +0200)
commit8bb9da943a62f4ffaabba1ad745990260fbb39df
tree7920bb9d78e4d4a2dbcb1e297472935d1d8ecbae
parente162b2f835eeda0d255bd463753b5eb823735205
jbd: use kmem_cache_zalloc for allocating journal head

This commit tries to use kmem_cache_zalloc instead of kmem_cache_alloc/
memset when a new journal head is alloctated.

Signed-off-by: Zheng Liu <wenqing.lz@taobao.com>
Cc: Jan Kara <jack@suse.cz>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/jbd/journal.c