[PATCH 4/4] staging: zsmalloc: make CLASS_DELTA relative to PAGE_SIZE

Minchan Kim minchan at kernel.org
Mon Jan 28 03:44:04 UTC 2013


On Fri, Jan 25, 2013 at 11:46:18AM -0600, Seth Jennings wrote:
> Right now ZS_SIZE_CLASS_DELTA is hardcoded to be 16.  This
> creates 254 classes for systems with 4k pages. However, on
> PPC64 with 64k pages, it creates 4095 classes which is far
> too many.
> 
> This patch makes ZS_SIZE_CLASS_DELTA relative to PAGE_SIZE
> so that regardless of the page size, there will be the same
> number of classes.
> 
> Acked-by: Nitin Gupta <ngupta at vflare.org>
> Signed-off-by: Seth Jennings <sjenning at linux.vnet.ibm.com>
Acked-by: Minchan Kim <minchan at kernel.org>

-- 
Kind regards,
Minchan Kim



More information about the devel mailing list