From: Wang Sheng-Hui Date: Thu, 9 Oct 2014 22:29:59 +0000 (-0700) Subject: mm/zsmalloc.c: correct comment for fullness group computation X-Git-Tag: firefly_0821_release~3680^2~8^2^2~9 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=b4f773eb2609e4b4fdf1e4ba11fd5dbc4eb2e655;p=firefly-linux-kernel-4.4.55.git 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 Acked-by: Minchan Kim Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds (cherry picked from commit 6dd9737e31504f9377a8a19810ea4922e88516c1) Signed-off-by: Alex Shi --- diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c index a255c6e87cab..a4556ec316e4 100644 --- a/mm/zsmalloc.c +++ b/mm/zsmalloc.c @@ -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