]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
zsmalloc: fixup trivial zs size classes value in comments
authorWeijie Yang <weijie.yang@samsung.com>
Thu, 22 May 2014 00:43:27 +0000 (10:43 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 22 May 2014 00:43:27 +0000 (10:43 +1000)
According to calculation, ZS_SIZE_CLASSES value is 255 on systems with 4K
page size, not 254.  The old value may forget count the ZS_MIN_ALLOC_SIZE
in.

This patch fixes this trivial issue in the comments.

Signed-off-by: Weijie Yang <weijie.yang@samsung.com>
Cc: Minchan Kim <minchan@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/zsmalloc.c

index 5ae5d85b629d3a56f520ae7f4211c3024b0191f3..fe78189624cfce58d29a567b6c379b80367775de 100644 (file)
 #define ZS_MAX_ALLOC_SIZE      PAGE_SIZE
 
 /*
- * On systems with 4K page size, this gives 254 size classes! There is a
+ * On systems with 4K page size, this gives 255 size classes! There is a
  * trader-off here:
  *  - Large number of size classes is potentially wasteful as free page are
  *    spread across these classes