Re: [PATCH 3/3] mm: hugetlb_vmemmap: cleanup CONFIG_HUGETLB_PAGE_FREE_VMEMMAP*

From: Mike Kravetz
Date: Tue May 31 2022 - 20:20:48 EST


On 4/4/22 00:46, Muchun Song wrote:
> The word of "free" is not expressive enough to express the feature of optimizing
> vmemmap pages associated with each HugeTLB, rename this keywork to "optimeze".
> In this patch , cheanup configs to make code more expressive.

Commit message might look better as:

The keyword "free" is not expressive enough to describe the feature of
optimizing vmemmap pages associated with each HugeTLB page. Rename the
keyword to "optimize".

Change configs to make code more expressive.

>
> Signed-off-by: Muchun Song <songmuchun@xxxxxxxxxxxxx>
> ---
> Documentation/admin-guide/kernel-parameters.txt | 4 ++--
> Documentation/admin-guide/mm/hugetlbpage.rst | 2 +-
> arch/arm64/Kconfig | 2 +-
> arch/arm64/mm/flush.c | 2 +-
> arch/x86/Kconfig | 2 +-
> arch/x86/mm/init_64.c | 2 +-
> fs/Kconfig | 16 ++++++++--------
> include/linux/hugetlb.h | 2 +-
> include/linux/mm.h | 2 +-
> include/linux/page-flags.h | 6 +++---
> mm/Makefile | 2 +-
> mm/hugetlb_vmemmap.c | 4 ++--
> mm/hugetlb_vmemmap.h | 4 ++--
> mm/sparse-vmemmap.c | 4 ++--
> 14 files changed, 27 insertions(+), 27 deletions(-)

I see the issue found by Vlastimil is already fixed here [1]. With that
this looks good.

[1] https://lore.kernel.org/linux-mm/20220527081948.68832-1-songmuchun@xxxxxxxxxxxxx/

Acked-by: Mike Kravetz <mike.kravetz@xxxxxxxxxx>

--
Mike Kravetz