mm: numa: avoid unnecessary work on the failure path
commiteb4489f69f224356193364dc2762aa009738ca7f
authorMel Gorman <mgorman@suse.de>
Thu, 19 Dec 2013 01:08:39 +0000 (18 17:08 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 19 Dec 2013 03:04:51 +0000 (18 19:04 -0800)
tree989a782b069c484155770d122026ce2f447e8a2a
parentc3a489cac38d43ea6dc4ac240473b44b46deecf7
mm: numa: avoid unnecessary work on the failure path

If a PMD changes during a THP migration then migration aborts but the
failure path is doing more work than is necessary.

Signed-off-by: Mel Gorman <mgorman@suse.de>
Reviewed-by: Rik van Riel <riel@redhat.com>
Cc: Alex Thorlton <athorlton@sgi.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/migrate.c