linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mm: correct comment for fullness group computation in zsmalloc.c
@ 2014-09-14  7:57 Wang Sheng-Hui
  2014-09-15  6:51 ` Minchan Kim
  0 siblings, 1 reply; 2+ messages in thread
From: Wang Sheng-Hui @ 2014-09-14  7:57 UTC (permalink / raw)
  To: minchan, ngupta; +Cc: linux-mm, Wang Sheng-Hui

The letter 'f' in "n <= N/f" stands for fullness_threshold_frac, not
1/fullness_threshold_frac.

Signed-off-by: Wang Sheng-Hui <shhuiw@gmail.com>
---
 mm/zsmalloc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c
index 94f38fa..287a8dc 100644
--- a/mm/zsmalloc.c
+++ b/mm/zsmalloc.c
@@ -175,7 +175,7 @@ enum fullness_group {
  *	n <= N / f, where
  * n = number of allocated objects
  * N = total number of objects zspage can store
- * f = 1/fullness_threshold_frac
+ * f = fullness_threshold_frac
  *
  * Similarly, we assign zspage to:
  *	ZS_ALMOST_FULL	when n > N / f
-- 
1.8.3.2

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-09-15  6:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-14  7:57 [PATCH] mm: correct comment for fullness group computation in zsmalloc.c Wang Sheng-Hui
2014-09-15  6:51 ` Minchan Kim

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox