History

mm/sparsemem: prepare for sub-section ranges

Prepare the memory hot-{add,remove} paths for handling sub-section ranges by plumbing the starting page frame and number of pages being handled through arch_{add,remove}_memory() to sparse_{add,remove}_one_section(). This is simply plumbing, small cleanups, and some identifier renames. No intended functional changes.

Dan Williams committed 7 years ago

Commit 7ea62161 parent 46d945a3 files · +81 −54Browse files

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

Unified · Split

include/linux/memory_hotplug.h+3−2
@@ -346,9 +346,10 @@ extern int add_memory_resource(int nid, struct resource *resource); · 345 unmodified lines
346extern void move_pfn_range_to_zone(struct zone *zone, unsigned long start_pfn,346extern void move_pfn_range_to_zone(struct zone *zone, unsigned long start_pfn,
347 unsigned long nr_pages, struct vmem_altmap *altmap);347 unsigned long nr_pages, struct vmem_altmap *altmap);
348extern bool is_memblock_offlined(struct memory_block *mem);348extern bool is_memblock_offlined(struct memory_block *mem);
349extern int sparse_add_one_section(int nid, unsigned long start_pfn,349extern int sparse_add_section(int nid, unsigned long pfn,
350 struct vmem_altmap *altmap);350 unsigned long nr_pages, struct vmem_altmap *altmap);
351extern void sparse_remove_one_section(struct mem_section *ms,351extern void sparse_remove_one_section(struct mem_section *ms,
352 unsigned long pfn, unsigned long nr_pages,
352 unsigned long map_offset, struct vmem_altmap *altmap);353 unsigned long map_offset, struct vmem_altmap *altmap);
353extern struct page *sparse_decode_mem_map(unsigned long coded_mem_map,354extern struct page *sparse_decode_mem_map(unsigned long coded_mem_map,
354 unsigned long pnum);355 unsigned long pnum);

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