Skip to contentSkip to conversation

mm, compaction: skip over holes in __reset_isolation_suitable

PATCH New [email protected] 1 participant 1 message Jul 6, 2017

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

PATCH 50/108 mm, compaction: skip over holes in __reset_isolation_suitable

From: Michal Hocko <[email protected]>
Subject: mm, compaction: skip over holes in __reset_isolation_suitable

__reset_isolation_suitable walks the whole zone pfn range and it tries to jump over holes by checking the zone for each page. It might still stumble over offline pages, though. Skip those by checking pfn_to_online_page()

Cc Andi Kleen <[email protected]>
Cc Andrea Arcangeli <[email protected]>
Cc Balbir Singh <[email protected]>
Cc Dan Williams <[email protected]>
Cc Daniel Kiper <[email protected]>
Cc David Rientjes <[email protected]>
Cc Heiko Carstens <[email protected]>
Cc Igor Mammedov <[email protected]>
Cc Jerome Glisse <[email protected]>
Cc Joonsoo Kim <[email protected]>
Cc Martin Schwidefsky <[email protected]>
Cc Mel Gorman <[email protected]>
Cc Reza Arbab <[email protected]>
Cc Tobias Regnery <[email protected]>
Cc Toshi Kani <[email protected]>
Cc Vitaly Kuznetsov <[email protected]>
Cc Xishi Qiu <[email protected]>
Cc Yasuaki Ishimatsu <[email protected]>

---

 mm/compaction.c |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
mm/compaction.c renamed from mm/compaction.c~mm-compaction-skip-over-holes-in-__reset_isolation_suitable +2 -1
diff -puN mm/compaction.c~mm-compaction-skip-over-holes-in-__reset_isolation_suitable mm/compaction.c
@@ -236,10 +236,9 @@ static void __reset_isolation_suitable(s
 
 		cond_resched();
 
-		if (!pfn_valid(pfn))
+		page = pfn_to_online_page(pfn);
+		if (!page)
 			continue;