memblock: introduce MEMBLOCK_RSRV_NOINIT flag
mainline inclusion from mainline-v6.7-rc1 commit 77e6c43e137c130138c3fbadc847351a83c4befe category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I8JXRC CVE: NA Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=77e6c43e137c130138c3fbadc847351a83c4befe ------------------------------------------- For reserved memory regions marked with this flag, reserve_bootmem_region is not called during memmap_init_reserved_pages. This can be used to avoid struct page initialization for regions which won't need them, for e.g. hugepages with Hugepage Vmemmap Optimization enabled. Link: https://lkml.kernel.org/r/20230913105401.519709-4-usama.arif@bytedance.com Signed-off-by:Usama Arif <usama.arif@bytedance.com> Acked-by:
Muchun Song <songmuchun@bytedance.com> Reviewed-by:
Mike Rapoport (IBM) <rppt@kernel.org> Cc: Fam Zheng <fam.zheng@bytedance.com> Cc: Mike Kravetz <mike.kravetz@oracle.com> Cc: Punit Agrawal <punit.agrawal@bytedance.com> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> Signed-off-by:
Jinjiang Tu <tujinjiang@huawei.com>
Loading
Please sign in to comment