aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/jbd2.h
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 /include/linux/jbd2.h
parentext4: mext_insert_extents should update extent block checksum (diff)
downloadlinux-dev-28daf4fae8693d4a285123494899fe01950cba50.tar.xz
linux-dev-28daf4fae8693d4a285123494899fe01950cba50.zip
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 'include/linux/jbd2.h')
-rw-r--r--include/linux/jbd2.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/jbd2.h b/include/linux/jbd2.h
index f9fe88957b7a..6e051f472edb 100644
--- a/include/linux/jbd2.h
+++ b/include/linux/jbd2.h
@@ -1145,7 +1145,7 @@ extern struct kmem_cache *jbd2_handle_cache;
static inline handle_t *jbd2_alloc_handle(gfp_t gfp_flags)
{
- return kmem_cache_alloc(jbd2_handle_cache, gfp_flags);
+ return kmem_cache_zalloc(jbd2_handle_cache, gfp_flags);
}
static inline void jbd2_free_handle(handle_t *handle)