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

This is simply plumbing, small cleanups, and some identifier renames.
No intended functional changes.

Signed-off-by: Dan Williams <>
Reviewed-by: Pavel Tatashin <>
Tested-by: Aneesh Kumar K.V <>	[ppc64]
Reviewed-by: Oscar Salvador <>
Cc: Michal Hocko <>
Cc: Vlastimil Babka <>
Cc: Logan Gunthorpe <>
Cc: David Hildenbrand <>
Cc: Jane Chu <>
Cc: Jeff Moyer <>
Cc: Jérôme Glisse <>
Cc: Jonathan Corbet <>
Cc: Mike Rapoport <>
Cc: Toshi Kani <>
Cc: Wei Yang <>
Cc: Jason Gunthorpe <>
Cc: Christoph Hellwig <>
Signed-off-by: Andrew Morton <>
Signed-off-by: Linus Torvalds <>
3 files changed