]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6e0ab5abc3b7cec3e5c07c03556b723b10089314
tree2bd7b5213369a509220864868d593f4ab4e5ebd1
parentb49598e4a2c7ef0fa20809174266e14b53396486
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
3f107856b7 ("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