diff options
author | Wang Sheng-Hui <shhuiw@gmail.com> | 2014-10-09 18:29:59 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-10-09 22:26:03 -0400 |
commit | 6dd9737e31504f9377a8a19810ea4922e88516c1 (patch) | |
tree | baa260b44e966d07ad7f899ad222c27cc24b348a /mm/zsmalloc.c | |
parent | 015254daf1753003c19c46b90ee85a963260d270 (diff) |
mm/zsmalloc.c: correct comment for fullness group computation
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>
Diffstat (limited to 'mm/zsmalloc.c')
-rw-r--r-- | mm/zsmalloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c index c4a91578dc96..c81f63e73c5f 100644 --- a/mm/zsmalloc.c +++ b/mm/zsmalloc.c | |||
@@ -175,7 +175,7 @@ enum fullness_group { | |||
175 | * n <= N / f, where | 175 | * n <= N / f, where |
176 | * n = number of allocated objects | 176 | * n = number of allocated objects |
177 | * N = total number of objects zspage can store | 177 | * N = total number of objects zspage can store |
178 | * f = 1/fullness_threshold_frac | 178 | * f = fullness_threshold_frac |
179 | * | 179 | * |
180 | * Similarly, we assign zspage to: | 180 | * Similarly, we assign zspage to: |
181 | * ZS_ALMOST_FULL when n > N / f | 181 | * ZS_ALMOST_FULL when n > N / f |