The patch titled Subject: mm: correct return value of migrate_pages() has been added to the -mm tree. Its filename is mm-correct-return-value-of-migrate_pages.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Joonsoo Kim <js1304@xxxxxxxxx> Subject: mm: correct return value of migrate_pages() migrate_pages() should return number of pages not migrated or error code. When unmap_and_move return -EAGAIN, outer loop is re-execution without initialising nr_failed. This makes nr_failed over-counted. So this patch correct it by initialising nr_failed in outer loop. Signed-off-by: Joonsoo Kim <js1304@xxxxxxxxx> Cc: Christoph Lameter <cl@xxxxxxxxx> Cc: Mel Gorman <mel@xxxxxxxxx> Cc: Michal Nazarewicz <mina86@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/migrate.c | 1 + 1 file changed, 1 insertion(+) diff -puN mm/migrate.c~mm-correct-return-value-of-migrate_pages mm/migrate.c --- a/mm/migrate.c~mm-correct-return-value-of-migrate_pages +++ a/mm/migrate.c @@ -1069,6 +1069,7 @@ int migrate_pages(struct list_head *from for(pass = 0; pass < 10 && retry; pass++) { retry = 0; + nr_failed = 0; list_for_each_entry_safe(page, page2, from, lru) { cond_resched(); _ Subject: Subject: mm: correct return value of migrate_pages() Patches currently in -mm which might be from js1304@xxxxxxxxx are linux-next.patch mm-correct-return-value-of-migrate_pages.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html