Re: [RFC PATCH] mm/zsmalloc: allocate exactly size of struct zs_pool

2014-11-30 Thread Minchan Kim
On Sat, Nov 29, 2014 at 07:23:55PM +0800, Ganesh Mahendran wrote: > In zs_create_pool(), we allocate memory more then sizeof(struct zs_pool) > ovhd_size = roundup(sizeof(*pool), PAGE_SIZE); > > This patch allocate memory of exactly needed size. > > Signed-off-by: Ganesh Mahendran Acked-by: Min

[RFC PATCH] mm/zsmalloc: allocate exactly size of struct zs_pool

2014-11-29 Thread Ganesh Mahendran
In zs_create_pool(), we allocate memory more then sizeof(struct zs_pool) ovhd_size = roundup(sizeof(*pool), PAGE_SIZE); This patch allocate memory of exactly needed size. Signed-off-by: Ganesh Mahendran --- mm/zsmalloc.c |5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --gi