Re: [PATCH] mm: correct comment for fullness group computation in zsmalloc.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Sep 14, 2014 at 03:57:47PM +0800, Wang Sheng-Hui wrote:
> The letter 'f' in "n <= N/f" stands for fullness_threshold_frac, not
> 1/fullness_threshold_frac.
> 
> Signed-off-by: Wang Sheng-Hui <shhuiw@xxxxxxxxx>
Acked-by: Minchan Kim <minchan@xxxxxxxxxx>

Thanks.

> ---
>  mm/zsmalloc.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c
> index 94f38fa..287a8dc 100644
> --- a/mm/zsmalloc.c
> +++ b/mm/zsmalloc.c
> @@ -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
> -- 
> 1.8.3.2
> 
> --
> To unsubscribe, send a message with 'unsubscribe linux-mm' in
> the body to majordomo@xxxxxxxxx.  For more info on Linux MM,
> see: http://www.linux-mm.org/ .
> Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>

-- 
Kind regards,
Minchan Kim

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]