Skip to content
Snippets Groups Projects
Commit f94afee9 authored by Hui Su's avatar Hui Su Committed by Linus Torvalds
Browse files

mm/z3fold.c: use xx_zalloc instead xx_alloc and memset


alloc_slots() allocates memory for slots using kmem_cache_alloc(), then
memsets it.  We can just use kmem_cache_zalloc().

Signed-off-by: default avatarHui Su <sh_def@163.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Reviewed-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Link: https://lkml.kernel.org/r/20200926100834.GA184671@rlk


Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 01c4776b
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment