Re: [PATCH] mm/zsmalloc.c: Convert to use kmem_cache_zalloc in cache_alloc_zspage()

2021-01-14 Thread Sergey Senozhatsky
On (21/01/14 07:00), Miaohe Lin wrote: > > 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. > > Signed-off-by: Miaohe Lin Reviewed-by: Sergey Senozhatsky -ss

[PATCH] mm/zsmalloc.c: Convert to use kmem_cache_zalloc in cache_alloc_zspage()

2021-01-14 Thread Miaohe Lin
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. Signed-off-by: Miaohe Lin --- mm/zsmalloc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mm/zsmalloc.c b/mm/zs