]> git.karo-electronics.de Git - mv-sheeva.git/commit
mm: when migrate_pages returns 0, all pages must have been released
authorAndrea Arcangeli <aarcange@redhat.com>
Tue, 1 Feb 2011 23:52:32 +0000 (15:52 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 3 Feb 2011 00:03:18 +0000 (16:03 -0800)
commit57fc4a5ee322cde96c33f101d3c2d3b79011c05c
treedc0fbf22dc90c93690de7cf0d115e5499222ff04
parent552b372ba9db85751e7db2998f07cca2e51f5865
mm: when migrate_pages returns 0, all pages must have been released

In some cases migrate_pages could return zero while still leaving a few
pages in the pagelist (and some caller wouldn't notice it has to call
putback_lru_pages after commit cf608ac19c9 ("mm: compaction: fix
COMPACTPAGEFAILED counting")).

Add one missing putback_lru_pages not added by commit cf608ac19c95 ("mm:
compaction: fix COMPACTPAGEFAILED counting").

Signed-off-by: Andrea Arcangeli <aarcange@redhat.com>
Signed-off-by: Minchan Kim <minchan.kim@gmail.com>
Reviewed-by: Minchan Kim <minchan.kim@gmail.com>
Cc: Christoph Lameter <cl@linux.com>
Acked-by: Mel Gorman <mel@csn.ul.ie>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/memory-failure.c
mm/migrate.c