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 <n-horigu...@ah.jp.nec.com>
> ---
>  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

Reply via email to