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)
committerAlex Shi <alex.shi@linaro.org>
Mon, 11 May 2015 13:30:59 +0000 (21:30 +0800)
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>
(cherry picked from commit 6dd9737e31504f9377a8a19810ea4922e88516c1)
Signed-off-by: Alex Shi <alex.shi@linaro.org>
mm/zsmalloc.c

index a255c6e87caba913651c909fde9fdb9d63ea34f7..a4556ec316e4e9bc2e94fe962bd966307b963c19 100644 (file)
@@ -163,7 +163,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