aboutsummaryrefslogtreecommitdiffstats
path: root/mm/zsmalloc.c
diff options
context:
space:
mode:
authorWeijie Yang <weijie.yang@samsung.com>2014-06-04 19:11:08 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2014-06-04 19:54:13 -0400
commit7eb52512a977854eca51d9b692c2f3be8a0e5eeb (patch)
treeb7c8b0ae1c08a48c8ae46d60351ed20e2e5fba12 /mm/zsmalloc.c
parent50417c55562c03e6746b13aee650c2bbb048fea3 (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>
Diffstat (limited to 'mm/zsmalloc.c')
-rw-r--r--mm/zsmalloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c
index 5ae5d85b629d..fe78189624cf 100644
--- a/mm/zsmalloc.c
+++ b/mm/zsmalloc.c
@@ -141,7 +141,7 @@
141#define ZS_MAX_ALLOC_SIZE PAGE_SIZE 141#define ZS_MAX_ALLOC_SIZE PAGE_SIZE
142 142
143/* 143/*
144 * On systems with 4K page size, this gives 254 size classes! There is a 144 * On systems with 4K page size, this gives 255 size classes! There is a
145 * trader-off here: 145 * trader-off here:
146 * - Large number of size classes is potentially wasteful as free page are 146 * - Large number of size classes is potentially wasteful as free page are
147 * spread across these classes 147 * spread across these classes