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
1374}1374}
1375#endif1375#endif
1376 1376
1377static inline int pfn_present(unsigned long pfn)1377static inline int pfn_in_present_section(unsigned long pfn)
1378{1378{
1379 if (pfn_to_section_nr(pfn) >= NR_MEM_SECTIONS)1379 if (pfn_to_section_nr(pfn) >= NR_MEM_SECTIONS)
1380 return 0;1380 return 0;
@@ -1411,7 +1411,7 @@ void sparse_init(void); · 30 unmodified lines
1411#else1411#else
1412#define sparse_init() do {} while (0)1412#define sparse_init() do {} while (0)
1413#define sparse_index_init(_sec, _nid) do {} while (0)1413#define sparse_index_init(_sec, _nid) do {} while (0)
1414#define pfn_present pfn_valid1414#define pfn_in_present_section pfn_valid
1415#define subsection_map_init(_pfn, _nr_pages) do {} while (0)1415#define subsection_map_init(_pfn, _nr_pages) do {} while (0)
1416#endif /* CONFIG_SPARSEMEM */1416#endif /* CONFIG_SPARSEMEM */
1417 1417

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