* [PATCH] mm/mempolicy.c: fix 'if ();' typo
@ 2006-02-20 14:57 Alexey Dobriyan
2006-02-20 20:37 ` Andrew Morton
0 siblings, 1 reply; 2+ messages in thread
From: Alexey Dobriyan @ 2006-02-20 14:57 UTC (permalink / raw)
To: Andrew Morton; +Cc: linux-kernel
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
---
mm/mempolicy.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/mm/mempolicy.c
+++ b/mm/mempolicy.c
@@ -587,7 +587,7 @@ redo:
}
list_add(&page->lru, &newlist);
nr_pages++;
- if (nr_pages > MIGRATE_CHUNK_SIZE);
+ if (nr_pages > MIGRATE_CHUNK_SIZE)
break;
}
err = migrate_pages(pagelist, &newlist, &moved, &failed);
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] mm/mempolicy.c: fix 'if ();' typo
2006-02-20 14:57 [PATCH] mm/mempolicy.c: fix 'if ();' typo Alexey Dobriyan
@ 2006-02-20 20:37 ` Andrew Morton
0 siblings, 0 replies; 2+ messages in thread
From: Andrew Morton @ 2006-02-20 20:37 UTC (permalink / raw)
To: Alexey Dobriyan; +Cc: linux-kernel, Christoph Lameter
Alexey Dobriyan <adobriyan@gmail.com> wrote:
>
> Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
> ---
>
> mm/mempolicy.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> --- a/mm/mempolicy.c
> +++ b/mm/mempolicy.c
> @@ -587,7 +587,7 @@ redo:
> }
> list_add(&page->lru, &newlist);
> nr_pages++;
> - if (nr_pages > MIGRATE_CHUNK_SIZE);
> + if (nr_pages > MIGRATE_CHUNK_SIZE)
> break;
> }
> err = migrate_pages(pagelist, &newlist, &moved, &failed);
rofl. That should speed things up a bit, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-02-20 20:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-20 14:57 [PATCH] mm/mempolicy.c: fix 'if ();' typo Alexey Dobriyan
2006-02-20 20:37 ` Andrew Morton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).