zsmalloc: fixup trivial zs size classes value in comments
authorWeijie Yang <weijie.yang@samsung.com>
Wed, 4 Jun 2014 23:11:08 +0000 (16:11 -0700)
committerAlex Shi <alex.shi@linaro.org>
Mon, 11 May 2015 13:03:19 +0000 (21:03 +0800)
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
(cherry picked from commit 7eb52512a977854eca51d9b692c2f3be8a0e5eeb)
Signed-off-by: Alex Shi <alex.shi@linaro.org>
mm/zsmalloc.c

index b728f10e353ba455f585ee47319bbdeb5a9a7f21..cee5c54c500f5c5f9cd3c5c9c750c56a9e3c9db3 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