History

mm/sparse: rename pfn_present() to pfn_in_present_section()

After introducing mem sub section concept, pfn_present() loses its literal meaning, and will not be necessary a truth on partial populated mem section. Since all of the callers use it to judge an absent section, it is better to rename pfn_present() as pfn_in_present_section().

Pingfan Liu committed 6 years ago

Commit e03d1f71 parent 4627d765 files · +6 −6Browse files

Showing the changes to include/linux (1 of 5 files). Show all

Unified · Split

include/linux/mmzone.h+2−2
@@ -1374,7 +1374,7 @@ static inline int pfn_valid(unsigned long pfn) · 1373 unmodified lines
13741374 }
13751375 #endif
13761376
1377−static inline int pfn_present(unsigned long pfn)
1377+static inline int pfn_in_present_section(unsigned long pfn)
13781378 {
13791379 if (pfn_to_section_nr(pfn) >= NR_MEM_SECTIONS)
13801380 return 0;
@@ -1411,7 +1411,7 @@ void sparse_init(void); · 30 unmodified lines
14111411 #else
14121412 #define sparse_init() do {} while (0)
14131413 #define sparse_index_init(_sec, _nid) do {} while (0)
1414−#define pfn_present pfn_valid
1414+#define pfn_in_present_section pfn_valid
14151415 #define subsection_map_init(_pfn, _nr_pages) do {} while (0)
14161416 #endif /* CONFIG_SPARSEMEM */
14171417

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t