Thread (6 messages) 6 messages, 4 authors, 2021-02-26

Re: [PATCH v8 1/1] mm/page_alloc.c: refactor initialization of struct page for holes in memory layout

From: Mike Rapoport <rppt@kernel.org>
Date: 2021-02-26 06:16:05
Also in: lkml, stable

On Thu, Feb 25, 2021 at 04:08:51PM -0800, Andrew Morton wrote:
On Fri, 26 Feb 2021 00:43:51 +0200 Mike Rapoport [off-list ref] wrote:
quoted
From: Mike Rapoport <redacted>
quoted
 void __meminit __weak memmap_init_zone(struct zone *zone)
 {
 	unsigned long zone_start_pfn = zone->zone_start_pfn;
 	unsigned long zone_end_pfn = zone_start_pfn + zone->spanned_pages;
 	int i, nid = zone_to_nid(zone), zone_id = zone_idx(zone);
+	static unsigned long hole_pfn = 0;
static implies that pgdat->node_zones[] is alwyas sorted in ascending
pfn order.  Always true?
Yes.

-- 
Sincerely yours,
Mike.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help