* [PATCH] mm/zsmalloc.c: fix comment for get_pages_per_zspage
@ 2015-03-20 7:43 Yinghao Xie
0 siblings, 0 replies; only message in thread
From: Yinghao Xie @ 2015-03-20 7:43 UTC (permalink / raw)
To: Andrew Morton; +Cc: Minchan Kim, Nitin Gupta, mm, lkml
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=utf-8, Size: 834 bytes --]
Suggested-by: Minchan Kim <minchan@kernel.org>
Signed-off-by: Yinghao Xie <yinghao.xie@sumsung.com>
---
mm/zsmalloc.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c
index 461243e..3e613cc 100644
--- a/mm/zsmalloc.c
+++ b/mm/zsmalloc.c
@@ -760,7 +760,8 @@ out:
* to form a zspage for each size class. This is important
* to reduce wastage due to unusable space left at end of
* each zspage which is given as:
- * wastage = Zp - Zp % size_class
+ * wastage = Zp % class_size
+ * usage = Zp - wastage
* where Zp = zspage size = k * PAGE_SIZE where k = 1, 2, ...
*
* For example, for size class of 3/8 * PAGE_SIZE, we should
--
1.7.9.5
N§²æìr¸zǧu©²Æ {\béì¹»\x1c®&Þ)îÆi¢Ø^nr¶Ý¢j$½§$¢¸\x05¢¹¨è§~'.)îÄÃ,yèm¶ÿÃ\f%{±j+ðèצj)Z·
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2015-03-20 7:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-20 7:43 [PATCH] mm/zsmalloc.c: fix comment for get_pages_per_zspage Yinghao Xie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).