Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756888AbcCCImX (ORCPT ); Thu, 3 Mar 2016 03:42:23 -0500 Received: from TYO202.gate.nec.co.jp ([210.143.35.52]:55674 "EHLO tyo202.gate.nec.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755407AbcCCImW convert rfc822-to-8bit (ORCPT ); Thu, 3 Mar 2016 03:42:22 -0500 From: Naoya Horiguchi To: "linux-mm@kvack.org" CC: "Kirill A. Shutemov" , Hugh Dickins , Andrew Morton , Dave Hansen , Andrea Arcangeli , Mel Gorman , Michal Hocko , "Vlastimil Babka" , Pavel Emelyanov , "linux-kernel@vger.kernel.org" , "Naoya Horiguchi" Subject: Re: [PATCH v1 11/11] mm: memory_hotplug: memory hotremove supports thp migration Thread-Topic: [PATCH v1 11/11] mm: memory_hotplug: memory hotremove supports thp migration Thread-Index: AQHRdSBSqyHtcBtuiEuA2GIIewDZ3p9Gz34A Date: Thu, 3 Mar 2016 08:40:17 +0000 Message-ID: <20160303084015.GA29281@hori1.linux.bs1.fc.nec.co.jp> References: <1456990918-30906-1-git-send-email-n-horiguchi@ah.jp.nec.com> <1456990918-30906-12-git-send-email-n-horiguchi@ah.jp.nec.com> In-Reply-To: <1456990918-30906-12-git-send-email-n-horiguchi@ah.jp.nec.com> Accept-Language: ja-JP, en-US Content-Language: ja-JP X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.128.101.9] Content-Type: text/plain; charset="iso-2022-jp" Content-ID: Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1199 Lines: 31 On Thu, Mar 03, 2016 at 04:41:58PM +0900, Naoya Horiguchi wrote: > This patch enables thp migration for memory hotremove. Stub definition of > prep_transhuge_page() is added for CONFIG_TRANSPARENT_HUGEPAGE=n. > > Signed-off-by: Naoya Horiguchi > --- > include/linux/huge_mm.h | 3 +++ > mm/memory_hotplug.c | 8 ++++++++ > mm/page_isolation.c | 8 ++++++++ > 3 files changed, 19 insertions(+) > > diff --git v4.5-rc5-mmotm-2016-02-24-16-18/include/linux/huge_mm.h v4.5-rc5-mmotm-2016-02-24-16-18_patched/include/linux/huge_mm.h > index 09b215d..7944346 100644 > --- v4.5-rc5-mmotm-2016-02-24-16-18/include/linux/huge_mm.h > +++ v4.5-rc5-mmotm-2016-02-24-16-18_patched/include/linux/huge_mm.h > @@ -175,6 +175,9 @@ static inline bool thp_migration_supported(void) > #define transparent_hugepage_enabled(__vma) 0 > > #define transparent_hugepage_flags 0UL > +static inline void prep_transhuge_page(struct page *page) > +{ > +} > static inline int > split_huge_page_to_list(struct page *page, struct list_head *list) > { According to the warnings from kbuild bot, this chunk should come with patch 8/11 or earlier. I'll fix this. Thanks, Naoya Horiguchi