mm/zsmalloc.c: convert to use kmem_cache_zalloc in cache_alloc_zspage()
authorMiaohe Lin <linmiaohe@huawei.com>
Fri, 26 Feb 2021 01:18:27 +0000 (17:18 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 26 Feb 2021 17:41:01 +0000 (09:41 -0800)
commitf0231305acd53375c6cf736971bf5711105dd6bb
tree8185750c4f5977e6ca130ec6ab29c4f1d4d7bc58
parente818e820c6a0e819d239264fc863531bbcd72c30
mm/zsmalloc.c: convert to use kmem_cache_zalloc in cache_alloc_zspage()

We always memset the zspage allocated via cache_alloc_zspage.  So it's
more convenient to use kmem_cache_zalloc in cache_alloc_zspage than caller
do it manually.

Link: https://lkml.kernel.org/r/20210114120032.25885-1-linmiaohe@huawei.com
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Reviewed-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Cc: Minchan Kim <minchan@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/zsmalloc.c