mm/zsmalloc.c: correct comment for fullness group computation
authorWang Sheng-Hui <shhuiw@gmail.com>
Thu, 9 Oct 2014 22:29:59 +0000 (15:29 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 10 Oct 2014 02:26:03 +0000 (22:26 -0400)
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>
Acked-by: Minchan Kim <minchan@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/zsmalloc.c

index c4a91578dc965f59f8020eac023e51041576849f..c81f63e73c5fb0c8d7cd1552130b9dee234ebb51 100644 (file)
@@ -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