summaryrefslogtreecommitdiffstats
path: root/fs/jbd
diff options
context:
space:
mode:
authorZheng Liu <wenqing.lz@taobao.com>2013-04-12 04:24:06 +0200
committerJan Kara <jack@suse.cz>2013-04-25 15:25:23 +0200
commite162b2f835eeda0d255bd463753b5eb823735205 (patch)
tree9de115d27b3ca4ee4e5275a43e32838a9edb123c /fs/jbd
parentjbd: don't wait (forever) for stale tid caused by wraparound (diff)
downloadlinux-e162b2f835eeda0d255bd463753b5eb823735205.tar.xz
linux-e162b2f835eeda0d255bd463753b5eb823735205.zip
jbd: use kmem_cache_zalloc instead of kmem_cache_alloc/memset
Now jbd_alloc_handle 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: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/jbd')
-rw-r--r--fs/jbd/transaction.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/jbd/transaction.c b/fs/jbd/transaction.c
index 071d6905f0dd..e3e255c0a509 100644
--- a/fs/jbd/transaction.c
+++ b/fs/jbd/transaction.c
@@ -245,7 +245,6 @@ static handle_t *new_handle(int nblocks)
handle_t *handle = jbd_alloc_handle(GFP_NOFS);
if (!handle)
return NULL;
- memset(handle, 0, sizeof(*handle));
handle->h_buffer_credits = nblocks;
handle->h_ref = 1;