summaryrefslogtreecommitdiffstats
path: root/fs/jbd2
diff options
context:
space:
mode:
authorZheng Liu <wenqing.lz@taobao.com>2013-04-19 17:49:23 -0400
committerTheodore Ts'o <tytso@mit.edu>2013-04-19 17:49:23 -0400
commit28daf4fae8693d4a285123494899fe01950cba50 (patch)
treeb0eb2335ada7a6940190bba0f8b65f6bc8674ddf /fs/jbd2
parent2656497b26d45c1ca51a7727ab92c8307cb99305 (diff)
downloadlinux-28daf4fae8693d4a285123494899fe01950cba50.tar.bz2
jbd2: use kmem_cache_zalloc instead of kmem_cache_alloc/memset
The jbd2_alloc_handle() function is only called by new_handle(). So this commit uses kmem_cache_zalloc() instead of kmem_cache_alloc()/memset(). Signed-off-by: Zheng Liu <wenqing.lz@taobao.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/jbd2')
-rw-r--r--fs/jbd2/transaction.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/jbd2/transaction.c b/fs/jbd2/transaction.c
index 325bc019ed88..a1920da22802 100644
--- a/fs/jbd2/transaction.c
+++ b/fs/jbd2/transaction.c
@@ -332,7 +332,6 @@ static handle_t *new_handle(int nblocks)
handle_t *handle = jbd2_alloc_handle(GFP_NOFS);
if (!handle)
return NULL;
- memset(handle, 0, sizeof(*handle));
handle->h_buffer_credits = nblocks;
handle->h_ref = 1;