mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
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 <[email protected]> Signed-off-by: Jan Kara <[email protected]>
This commit is contained in:
parent
e678a4f0f5
commit
e162b2f835
2 changed files with 1 additions and 2 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue