linux/drivers/staging/zsmalloc
Seth Jennings d662b8eba9 staging: zsmalloc: make CLASS_DELTA relative to PAGE_SIZE
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@vflare.org>
Acked-by: Minchan Kim <minchan@kernel.org>
Signed-off-by: Seth Jennings <sjenning@linux.vnet.ibm.com>
Acked-by: Dan Magenheimer <dan.magenheimer@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-01-29 23:16:42 -05:00
..
Kconfig staging: zsmalloc: remove x86 dependency 2012-07-09 11:34:59 -07:00
Makefile
zsmalloc-main.c staging: zsmalloc: make CLASS_DELTA relative to PAGE_SIZE 2013-01-29 23:16:42 -05:00
zsmalloc.h staging: zsmalloc: add mapping modes 2012-07-09 11:35:00 -07:00