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
58};58};
59 59
60/*60/*
61 * Restrictions for the memory hotplug:61 * Extended parameters for memory hotplug:
62 * altmap: alternative allocator for memmap array62 * altmap: alternative allocator for memmap array (optional)
63 */63 */
64struct mhp_restrictions {64struct mhp_params {
65 struct vmem_altmap *altmap;65 struct vmem_altmap *altmap;
66};66};
67 67
@@ -112,7 +112,7 @@ extern int restore_online_page_callback(online_page_callback_t callback); · 44 unmodified lines
112extern int try_online_node(int nid);112extern int try_online_node(int nid);
113 113
114extern int arch_add_memory(int nid, u64 start, u64 size,114extern int arch_add_memory(int nid, u64 start, u64 size,
115 struct mhp_restrictions *restrictions);115 struct mhp_params *params);
116extern u64 max_mem_size;116extern u64 max_mem_size;
117 117
118extern int memhp_online_type_from_str(const char *str);118extern 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
133 133
134/* reasonably generic interface to expand the physical pages */134/* reasonably generic interface to expand the physical pages */
135extern int __add_pages(int nid, unsigned long start_pfn, unsigned long nr_pages,135extern int __add_pages(int nid, unsigned long start_pfn, unsigned long nr_pages,
136 struct mhp_restrictions *restrictions);136 struct mhp_params *params);
137 137
138#ifndef CONFIG_ARCH_HAS_ADD_PAGES138#ifndef CONFIG_ARCH_HAS_ADD_PAGES
139static inline int add_pages(int nid, unsigned long start_pfn,139static 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)
141{141{
142 return __add_pages(nid, start_pfn, nr_pages, restrictions);142 return __add_pages(nid, start_pfn, nr_pages, params);
143}143}
144#else /* ARCH_HAS_ADD_PAGES */144#else /* ARCH_HAS_ADD_PAGES */
145int add_pages(int nid, unsigned long start_pfn, unsigned long nr_pages,145int add_pages(int nid, unsigned long start_pfn, unsigned long nr_pages,
146 struct mhp_restrictions *restrictions);146 struct mhp_params *params);
147#endif /* ARCH_HAS_ADD_PAGES */147#endif /* ARCH_HAS_ADD_PAGES */
148 148
149#ifdef CONFIG_NUMA149#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