mm/compaction: check migrate_pages's return value instead of list_empty()
authorMinchan Kim <minchan.kim@gmail.com>
Tue, 22 Mar 2011 23:30:39 +0000 (16:30 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 23 Mar 2011 00:44:00 +0000 (17:44 -0700)
commit9d502c1c8d47b337c378c2ac8eaeee7918ad16b1
tree2bd7b5213369a509220864868d593f4ab4e5ebd1
parentd527caf22e48480b102c7c6ee5b9ba12170148f7
mm/compaction: check migrate_pages's return value instead of list_empty()

Many migrate_page's caller check return value instead of list_empy by
cf608ac19c ("mm: compaction: fix COMPACTPAGEFAILED counting").  This patch
makes compaction's migrate_pages consistent with others.  This patch
should not change old behavior.

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