Commit c37d1a01 authored by Usama Arif's avatar Usama Arif Committed by Jinjiang Tu
Browse files

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: default avatarUsama Arif <usama.arif@bytedance.com>
Acked-by: default avatarMuchun Song <songmuchun@bytedance.com>
Reviewed-by: default avatarMike 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: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarJinjiang Tu <tujinjiang@huawei.com>
parent ec2f3919
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment