mm: correct comment for fullness group computation in zsmalloc.c
Subsystems (2)
PATCH 1/1 mm: correct comment for fullness group computation in zsmalloc.c
The letter 'f' in "n <= N/f" stands for fullness_threshold_frac, not 1/fullness_threshold_frac.
Signed-off-by Wang Sheng-Hui <[email protected]>
--- mm/zsmalloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
mm/zsmalloc.c +1 -1
@@ -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
Signature · 7 lines
1.8.3.2 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 4 lines · 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 <[email protected]>
Acked-by Minchan Kim <[email protected]>
Thanks.
Quoted 25 lines
--- mm/zsmalloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)mm/zsmalloc.c +1
-1@@ -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 Signature · 7 lines
1.8.3.2 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Signature · 8 lines
Kind regards, Minchan Kim -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"[email protected]"> [email protected] </a>