Skip to contentSkip to conversation

mmpage_alloc-drop-unnecessary-checks-from-pfn_range_valid_contig.patch removed from -mm tree

merged [email protected] 1 participant 1 message May 8, 2021

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: mm,page_alloc: drop unnecessary checks from pfn_range_valid_contig
has been removed from the -mm tree. Its filename was
mmpage_alloc-drop-unnecessary-checks-from-pfn_range_valid_contig.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Oscar Salvador <[email protected]>
Subject: mm,page_alloc: drop unnecessary checks from pfn_range_valid_contig

pfn_range_valid_contig() bails out when it finds an in-use page or a hugetlb page, among other things. We can drop the in-use page check since __alloc_contig_pages can migrate away those pages, and the hugetlb page check can go too since isolate_migratepages_range is now capable of dealing with hugetlb pages. Either way, those checks are racy so let the end function handle it when the time comes.

---

 mm/page_alloc.c |    6 ------
 1 file changed, 6 deletions(-)
mm/page_alloc.c renamed from mm/page_alloc.c~mmpage_alloc-drop-unnecessary-checks-from-pfn_range_valid_contig +0 -6
@@ -8898,12 +8898,6 @@ static bool pfn_range_valid_contig(struc
 
 		if (PageReserved(page))
 			return false;
-
-		if (page_count(page) > 0)
-			return false;
-
-		if (PageHuge(page))
-			return false;
 	}
 	return true;
 }

_

Patches currently in -mm which might be from [email protected] are