* [PATCH] mm/page_alloc.c : fix the typo of __zone_watermark_ok()
@ 2012-01-09 3:06 Huang Shijie
2012-01-09 6:28 ` Huang Shijie
0 siblings, 1 reply; 2+ messages in thread
From: Huang Shijie @ 2012-01-09 3:06 UTC (permalink / raw)
To: akpm; +Cc: mgorman, linux-mm, Huang Shijie
The current code does keep the same meaning as the original code.
The patch fixes it.
Signed-off-by: Huang Shijie <shijie8@gmail.com>
---
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@kvack.org. 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=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] mm/page_alloc.c : fix the typo of __zone_watermark_ok()
2012-01-09 3:06 [PATCH] mm/page_alloc.c : fix the typo of __zone_watermark_ok() Huang Shijie
@ 2012-01-09 6:28 ` Huang Shijie
0 siblings, 0 replies; 2+ messages in thread
From: Huang Shijie @ 2012-01-09 6:28 UTC (permalink / raw)
To: akpm; +Cc: mgorman, linux-mm, Huang Shijie
sorry for the noise.
Please ignore this patch.
On Mon, Jan 9, 2012 at 11:06 AM, Huang Shijie <shijie8@gmail.com> wrote:
> The current code does keep the same meaning as the original code.
> The patch fixes it.
>
> Signed-off-by: Huang Shijie <shijie8@gmail.com>
> ---
> 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@kvack.org. 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=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-01-09 6:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-09 3:06 [PATCH] mm/page_alloc.c : fix the typo of __zone_watermark_ok() Huang Shijie
2012-01-09 6:28 ` Huang Shijie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox