From: Joonsoo Kim <js1304@gmail.com> To: akpm@linux-foundation.org Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, Joonsoo Kim <js1304@gmail.com>, Christoph Lameter <cl@linux.com>, Mel Gorman <mgorman@suse.de> Subject: [PATCH] mm: fix wrong argument of migrate_huge_pages() in soft_offline_huge_page() Date: Wed, 18 Jul 2012 02:01:00 +0900 [thread overview] Message-ID: <1342544460-20095-1-git-send-email-js1304@gmail.com> (raw) Commit a6bc32b899223a877f595ef9ddc1e89ead5072b8 ('mm: compaction: introduce sync-light migration for use by compaction') change declaration of migrate_pages() and migrate_huge_pages(). But, it miss changing argument of migrate_huge_pages() in soft_offline_huge_page(). In this case, we should call with MIGRATE_SYNC. So change it. Additionally, there is mismatch between type of argument and function declaration for migrate_pages(). So fix this simple case, too. Signed-off-by: Joonsoo Kim <js1304@gmail.com> Cc: Christoph Lameter <cl@linux.com> Cc: Mel Gorman <mgorman@suse.de> diff --git a/mm/memory-failure.c b/mm/memory-failure.c index ab1e714..afde561 100644 --- a/mm/memory-failure.c +++ b/mm/memory-failure.c @@ -1431,8 +1431,8 @@ static int soft_offline_huge_page(struct page *page, int flags) /* Keep page count to indicate a given hugepage is isolated. */ list_add(&hpage->lru, &pagelist); - ret = migrate_huge_pages(&pagelist, new_page, MPOL_MF_MOVE_ALL, 0, - true); + ret = migrate_huge_pages(&pagelist, new_page, MPOL_MF_MOVE_ALL, false, + MIGRATE_SYNC); if (ret) { struct page *page1, *page2; list_for_each_entry_safe(page1, page2, &pagelist, lru) @@ -1561,7 +1561,7 @@ int soft_offline_page(struct page *page, int flags) page_is_file_cache(page)); list_add(&page->lru, &pagelist); ret = migrate_pages(&pagelist, new_page, MPOL_MF_MOVE_ALL, - 0, MIGRATE_SYNC); + false, MIGRATE_SYNC); if (ret) { putback_lru_pages(&pagelist); pr_info("soft offline: %#lx: migration failed %d, type %lx\n", -- 1.7.9.5
WARNING: multiple messages have this Message-ID (diff)
From: Joonsoo Kim <js1304@gmail.com> To: akpm@linux-foundation.org Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, Joonsoo Kim <js1304@gmail.com>, Christoph Lameter <cl@linux.com>, Mel Gorman <mgorman@suse.de> Subject: [PATCH] mm: fix wrong argument of migrate_huge_pages() in soft_offline_huge_page() Date: Wed, 18 Jul 2012 02:01:00 +0900 [thread overview] Message-ID: <1342544460-20095-1-git-send-email-js1304@gmail.com> (raw) Commit a6bc32b899223a877f595ef9ddc1e89ead5072b8 ('mm: compaction: introduce sync-light migration for use by compaction') change declaration of migrate_pages() and migrate_huge_pages(). But, it miss changing argument of migrate_huge_pages() in soft_offline_huge_page(). In this case, we should call with MIGRATE_SYNC. So change it. Additionally, there is mismatch between type of argument and function declaration for migrate_pages(). So fix this simple case, too. Signed-off-by: Joonsoo Kim <js1304@gmail.com> Cc: Christoph Lameter <cl@linux.com> Cc: Mel Gorman <mgorman@suse.de> diff --git a/mm/memory-failure.c b/mm/memory-failure.c index ab1e714..afde561 100644 --- a/mm/memory-failure.c +++ b/mm/memory-failure.c @@ -1431,8 +1431,8 @@ static int soft_offline_huge_page(struct page *page, int flags) /* Keep page count to indicate a given hugepage is isolated. */ list_add(&hpage->lru, &pagelist); - ret = migrate_huge_pages(&pagelist, new_page, MPOL_MF_MOVE_ALL, 0, - true); + ret = migrate_huge_pages(&pagelist, new_page, MPOL_MF_MOVE_ALL, false, + MIGRATE_SYNC); if (ret) { struct page *page1, *page2; list_for_each_entry_safe(page1, page2, &pagelist, lru) @@ -1561,7 +1561,7 @@ int soft_offline_page(struct page *page, int flags) page_is_file_cache(page)); list_add(&page->lru, &pagelist); ret = migrate_pages(&pagelist, new_page, MPOL_MF_MOVE_ALL, - 0, MIGRATE_SYNC); + false, MIGRATE_SYNC); if (ret) { putback_lru_pages(&pagelist); pr_info("soft offline: %#lx: migration failed %d, type %lx\n", -- 1.7.9.5 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next reply other threads:[~2012-07-17 17:02 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2012-07-17 17:01 Joonsoo Kim [this message] 2012-07-17 17:01 ` [PATCH] mm: fix wrong argument of migrate_huge_pages() in soft_offline_huge_page() Joonsoo Kim 2012-07-17 20:42 ` David Rientjes 2012-07-17 20:42 ` David Rientjes 2012-07-17 20:49 ` Andrew Morton 2012-07-17 20:49 ` Andrew Morton 2012-07-17 22:29 ` David Rientjes 2012-07-17 22:29 ` David Rientjes 2012-07-18 8:15 ` Aneesh Kumar K.V 2012-07-18 8:15 ` Aneesh Kumar K.V
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1342544460-20095-1-git-send-email-js1304@gmail.com \ --to=js1304@gmail.com \ --cc=akpm@linux-foundation.org \ --cc=cl@linux.com \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-mm@kvack.org \ --cc=mgorman@suse.de \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.