Re: [PATCH] mm/page_alloc.c : fix the typo of __zone_watermark_ok()

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

 



sorry for the noise.

Please ignore this patch.

On Mon, Jan 9, 2012 at 11:06 AM, Huang Shijie <shijie8@xxxxxxxxx> wrote:
> The current code does keep the same meaning as the original code.
> The patch fixes it.
>
> Signed-off-by: Huang Shijie <shijie8@xxxxxxxxx>
> ---
>  mm/page_alloc.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/mm/page_alloc.c b/mm/page_alloc.c
> index bdc804c..63f9026 100644
> --- a/mm/page_alloc.c
> +++ b/mm/page_alloc.c
> @@ -1435,7 +1435,7 @@ static bool __zone_watermark_ok(struct zone *z, int order, unsigned long mark,
>        long min = mark;
>        int o;
>
> -       free_pages -= (1 << order) + 1;
> +       free_pages -= (1 << order) - 1;
>        if (alloc_flags & ALLOC_HIGH)
>                min -= min / 2;
>        if (alloc_flags & ALLOC_HARDER)
> --
> 1.7.4
>

--
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/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href


[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]