summaryrefslogtreecommitdiffstats
path: root/mm/zbud.c
diff options
context:
space:
mode:
authorHui Su <sh_def@163.com>2020-10-14 01:56:52 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2020-10-14 03:38:34 +0200
commitf94afee9980c5722dfff6d3e46fd34a36293a509 (patch)
tree985d6acb1d518a96f4531993c3b9d7a19ed685b0 /mm/zbud.c
parentmm/vmscan: fix comments for isolate_lru_page() (diff)
downloadlinux-f94afee9980c5722dfff6d3e46fd34a36293a509.tar.xz
linux-f94afee9980c5722dfff6d3e46fd34a36293a509.zip
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: Hui Su <sh_def@163.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Reviewed-by: Andrew Morton <akpm@linux-foundation.org> Link: https://lkml.kernel.org/r/20200926100834.GA184671@rlk Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/zbud.c')
0 files changed, 0 insertions, 0 deletions