]> git.baikalelectronics.ru Git - kernel.git/commit
staging: zsmalloc: add ZS_MAX_PAGES_PER_ZSPAGE
authorSeth Jennings <sjenning@linux.vnet.ibm.com>
Mon, 5 Mar 2012 17:33:21 +0000 (11:33 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 7 Mar 2012 21:31:28 +0000 (13:31 -0800)
commit821ed191dd0f48a1af978bc179c010d9bac7fba9
tree37204c7ced4ed402ec8afda0bb3eb4c5c2c082a0
parent6469bfe0e8f4c11c167f7033c7d4c3e5184c1ea6
staging: zsmalloc: add ZS_MAX_PAGES_PER_ZSPAGE

This patch moves where max_zspage_order is declared and
changes its meaning.  "Order" typically implies 2^order
of something; however, it is currently being used as the
"maximum number of single pages in a zspage".  To add clarity,
ZS_MAX_ZSPAGE_ORDER is now used to calculate ZS_MAX_PAGES_PER_ZSPAGE,
which is 2^ZS_MAX_ZSPAGE_ORDER and is the upper bound on the number
of pages in a zspage.

Signed-off-by: Seth Jennings <sjenning@linux.vnet.ibm.com>
Acked-by: Nitin Gupta <ngupta@vflare.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/zsmalloc/zsmalloc-main.c
drivers/staging/zsmalloc/zsmalloc_int.h