Re: [PATCH v3] arm64: mm: hugetlb: Enable HUGETLB_PAGE_FREE_VMEMMAP for arm64

From: Andrew Morton
Date: Wed Mar 30 2022 - 22:41:57 EST


On Wed, 30 Mar 2022 22:54:00 +0800 Muchun Song <songmuchun@xxxxxxxxxxxxx> wrote:

> --- a/fs/Kconfig
> +++ b/fs/Kconfig
> @@ -247,7 +247,7 @@ config HUGETLB_PAGE
>
> config HUGETLB_PAGE_FREE_VMEMMAP
> def_bool HUGETLB_PAGE
> - depends on X86_64
> + depends on X86_64 || ARM64

This list is just going to get longer, until someone goes and switches
it to use ARCH_WANT_HUGETLB_PAGE_FREE_VMEMMAP or whatever. Why not do
that now?

> depends on SPARSEMEM_VMEMMAP