mm: hugetlb_vmemmap: add check of CONFIG_MEMORY_HOTPLUG back
authorMuchun Song <songmuchun@bytedance.com>
Tue, 5 Dec 2023 03:05:30 +0000 (11:05 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 12 Dec 2023 18:57:08 +0000 (10:57 -0800)
commit47e61d8874cca8070d4f9295819876c18b5207b2
tree300411ac8699adae90e5138bb732252b102da7da
parenta1748f85bec936d87cac8a9785fb2a38147fc998
mm: hugetlb_vmemmap: add check of CONFIG_MEMORY_HOTPLUG back

The compiler will optimize the code as much as possible if we add the
check of CONFIG_MEMORY_HOTPLUG back.

Link: https://lkml.kernel.org/r/20231205030530.3802-1-songmuchun@bytedance.com
Signed-off-by: Muchun Song <songmuchun@bytedance.com>
Cc: Mike Kravetz <mike.kravetz@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/hugetlb_vmemmap.c