From e162b2f835eeda0d255bd463753b5eb823735205 Mon Sep 17 00:00:00 2001 From: Zheng Liu Date: Fri, 12 Apr 2013 02:24:06 +0000 Subject: 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 Signed-off-by: Jan Kara --- fs/jbd/transaction.c | 1 - 1 file changed, 1 deletion(-) (limited to 'fs/jbd') 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; -- cgit v1.2.3-59-g8ed1b