History

mm/memory_hotplug: rename mhp_restrictions to mhp_params

The mhp_restrictions struct really doesn't specify anything resembling a restriction anymore so rename it to be mhp_params as it is a list of extended parameters.

Logan Gunthorpe committed 6 years ago

Commit f5637d31 parent 96c6b5910 files · +33 −33Browse files

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

Unified · Split

include/linux/memory_hotplug.h+8−8
@@ -58,10 +58,10 @@ enum { · 57 unmodified lines
5858 };
5959
6060 /*
61− * Restrictions for the memory hotplug:
62− * altmap: alternative allocator for memmap array
61+ * Extended parameters for memory hotplug:
62+ * altmap: alternative allocator for memmap array (optional)
6363 */
64−struct mhp_restrictions {
64+struct mhp_params {
6565 struct vmem_altmap *altmap;
6666 };
6767
@@ -112,7 +112,7 @@ extern int restore_online_page_callback(online_page_callback_t callback); · 44 unmodified lines
112112 extern int try_online_node(int nid);
113113
114114 extern int arch_add_memory(int nid, u64 start, u64 size,
115− struct mhp_restrictions *restrictions);
115+ struct mhp_params *params);
116116 extern u64 max_mem_size;
117117
118118 extern int memhp_online_type_from_str(const char *str);
@@ -133,17 +133,17 @@ extern void __remove_pages(unsigned long start_pfn, unsigned long nr_pages, · 14 unmodified lines
133133
134134 /* reasonably generic interface to expand the physical pages */
135135 extern int __add_pages(int nid, unsigned long start_pfn, unsigned long nr_pages,
136− struct mhp_restrictions *restrictions);
136+ struct mhp_params *params);
137137
138138 #ifndef CONFIG_ARCH_HAS_ADD_PAGES
139139 static inline int add_pages(int nid, unsigned long start_pfn,
140− unsigned long nr_pages, struct mhp_restrictions *restrictions)
140+ unsigned long nr_pages, struct mhp_params *params)
141141 {
142− return __add_pages(nid, start_pfn, nr_pages, restrictions);
142+ return __add_pages(nid, start_pfn, nr_pages, params);
143143 }
144144 #else /* ARCH_HAS_ADD_PAGES */
145145 int add_pages(int nid, unsigned long start_pfn, unsigned long nr_pages,
146− struct mhp_restrictions *restrictions);
146+ struct mhp_params *params);
147147 #endif /* ARCH_HAS_ADD_PAGES */
148148
149149 #ifdef CONFIG_NUMA

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