path: root/mm
diff options
authorWeijie Yang <weijie.yang@samsung.com>2014-06-04 16:11:08 -0700
committerAlex Shi <alex.shi@linaro.org>2015-05-11 21:03:19 +0800
commitc398e6a3df7562a1a70e2ad487dcda2c3cb635e9 (patch)
tree7d1659773d5735786170b368cfc9d0383bc4fa3f /mm
parentce58d51a0e9b366876270f03555c209917d3b80d (diff)
zsmalloc: fixup trivial zs size classes value in comments
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>
Diffstat (limited to 'mm')
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c
index b728f10e353b..cee5c54c500f 100644
--- a/mm/zsmalloc.c
+++ b/mm/zsmalloc.c
@@ -129,7 +129,7 @@
- * 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