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().
Showing the changes to include/linux (1 of 5 files). Show all
Unified · Split
| @@ -1374,7 +1374,7 @@ static inline int pfn_valid(unsigned long pfn) · 1373 unmodified lines | ||
| 1374 | 1374 | } |
| 1375 | 1375 | #endif |
| 1376 | 1376 | |
| 1377 | −static inline int pfn_present(unsigned long pfn) | |
| 1377 | +static inline int pfn_in_present_section(unsigned long pfn) | |
| 1378 | 1378 | { |
| 1379 | 1379 | if (pfn_to_section_nr(pfn) >= NR_MEM_SECTIONS) |
| 1380 | 1380 | return 0; |
| @@ -1411,7 +1411,7 @@ void sparse_init(void); · 30 unmodified lines | ||
| 1411 | 1411 | #else |
| 1412 | 1412 | #define sparse_init() do {} while (0) |
| 1413 | 1413 | #define sparse_index_init(_sec, _nid) do {} while (0) |
| 1414 | −#define pfn_present pfn_valid | |
| 1414 | +#define pfn_in_present_section pfn_valid | |
| 1415 | 1415 | #define subsection_map_init(_pfn, _nr_pages) do {} while (0) |
| 1416 | 1416 | #endif /* CONFIG_SPARSEMEM */ |
| 1417 | 1417 | |