jbd2: use kmem_cache_zalloc for allocating journal head
authorZheng Liu <wenqing.lz@taobao.com>
Tue, 28 May 2013 11:27:11 +0000 (07:27 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 28 May 2013 11:27:11 +0000 (07:27 -0400)
commit5d9cf9c6254ddc551fb51072f59dfae60e579736
tree75d7684a3a160406ad8c4247e0b260f57d7c80f0
parentd23142c6271c499d913d0d5e668b5a4eb6dafcb0
jbd2: 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: "Theodore Ts'o" <tytso@mit.edu>
fs/jbd2/journal.c