You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
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>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user