]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm: fix wrong argument of migrate_huge_pages() in soft_offline_huge_page()
authorMaxim Uvarov <maxim.uvarov@oracle.com>
Mon, 8 Oct 2012 11:58:47 +0000 (04:58 -0700)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Mon, 8 Oct 2012 11:58:47 +0000 (04:58 -0700)
commita82b2888cb9dc8a04d8b5f3c90dd33780c68552b
treeb623fc3c26a2f4ae266ffb33e76caa7edeadcad7
parentc02eb7dc805e51717133e0938f487529b6e741bb
mm: fix wrong argument of migrate_huge_pages() in soft_offline_huge_page()

commit dc32f63453f56d07a1073a697dcd843dd3098c09 upstream.

Commit a6bc32b89922 ("mm: compaction: introduce sync-light migration for
use by compaction") changed the declaration of migrate_pages() and
migrate_huge_pages().

But it missed changing the argument of migrate_huge_pages() in
soft_offline_huge_page().  In this case, we should call
migrate_huge_pages() with MIGRATE_SYNC.

Additionally, there is a mismatch between type the of argument and the
function declaration for migrate_pages().

Signed-off-by: Joonsoo Kim <js1304@gmail.com>
Cc: Christoph Lameter <cl@linux.com>
Cc: Mel Gorman <mgorman@suse.de>
Acked-by: David Rientjes <rientjes@google.com>
Cc: "Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Conflicts:

mm/memory-failure.c

Signed-off-by: Maxim Uvarov <maxim.uvarov@oracle.com>
mm/memory-failure.c