Skip to contentSkip to conversation

mm-use-__pfn_to_section-instead-of-open-coding-it.patch removed from -mm tree

merged [email protected] 1 participant 1 message Nov 11, 2021

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: mm: use __pfn_to_section() instead of open coding it
has been removed from the -mm tree. Its filename was
mm-use-__pfn_to_section-instead-of-open-coding-it.patch

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

------------------------------------------------------
From: Rolf Eike Beer <[email protected]>
Subject: mm: use __pfn_to_section() instead of open coding it

It is defined in the same file just a few lines above.

---

 include/linux/mmzone.h |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
include/linux/mmzone.h renamed from include/linux/mmzone.h~mm-use-__pfn_to_section-instead-of-open-coding-it +2 -2
@@ -1481,7 +1481,7 @@ static inline int pfn_valid(unsigned lon
 
 	if (pfn_to_section_nr(pfn) >= NR_MEM_SECTIONS)
 		return 0;
-	ms = __nr_to_section(pfn_to_section_nr(pfn));
+	ms = __pfn_to_section(pfn);
 	if (!valid_section(ms))
 		return 0;
 	/*
@@ -1496,7 +1496,7 @@ static inline int pfn_in_present_section
 {
 	if (pfn_to_section_nr(pfn) >= NR_MEM_SECTIONS)
 		return 0;
-	return present_section(__nr_to_section(pfn_to_section_nr(pfn)));
+	return present_section(__pfn_to_section(pfn));
 }
 
 static inline unsigned long next_present_section_nr(unsigned long section_nr)

_

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