* [PATCH] zsmalloc: fixup trivial zs size classes value in comments
@ 2014-05-15 8:38 Weijie Yang
0 siblings, 0 replies; only message in thread
From: Weijie Yang @ 2014-05-15 8:38 UTC (permalink / raw)
To: 'Minchan Kim'
Cc: 'Andrew Morton', 'Nitin Gupta', 'Bob Liu',
'linux-kernel', 'Weijie Yang'
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 fixup this trivial issue in the comments.
Signed-off-by: Weijie Yang <weijie.yang@samsung.com>
---
mm/zsmalloc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c
index 36b4591..04a6000 100644
--- a/mm/zsmalloc.c
+++ b/mm/zsmalloc.c
@@ -141,7 +141,7 @@
#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
--
1.7.10.4
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-05-15 8:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-15 8:38 [PATCH] zsmalloc: fixup trivial zs size classes value in comments Weijie Yang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®