[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230926023341.991124-1-yajun.deng@linux.dev>
Date: Tue, 26 Sep 2023 10:33:39 +0800
From: Yajun Deng <yajun.deng@...ux.dev>
To: akpm@...ux-foundation.org, rppt@...nel.org
Cc: mike.kravetz@...cle.com, muchun.song@...ux.dev,
willy@...radead.org, david@...hat.com, linux-mm@...ck.org,
linux-kernel@...r.kernel.org, Yajun Deng <yajun.deng@...ux.dev>
Subject: [PATCH v3 0/2] mm: Don't set and reset page count in MEMINIT_EARLY
__init_single_page would set page count and __free_pages_core would
reset it. A lot of pages don't need to do this when in MEMINIT_EARLY
context. It's unnecessary and time-consuming.
The 1st patch is pass page count and reserved to __init_single_page.
It's in preparation for the 2nd patch, it didn't change anything.
The 2nd patch only set page count for the reserved region, not all
of the region.
Yajun Deng (2):
mm: pass page count and reserved to __init_single_page
mm: Init page count in reserve_bootmem_region when MEMINIT_EARLY
mm/hugetlb.c | 2 +-
mm/internal.h | 8 +++++++-
mm/mm_init.c | 45 ++++++++++++++++++++++++++++-----------------
mm/page_alloc.c | 20 ++++++++++++--------
4 files changed, 48 insertions(+), 27 deletions(-)
--
2.25.1
Powered by blists - more mailing lists