On 2018-11-28 13:51, osalvador@xxxxxxx wrote:
yep. Or when we extend a zone/node via hotplug.The only thing I am worried about is that by doing that, the system will account spanned_pages incorrectly.As long as end_pfn - start_pfn matches then I do not see what would be incorrect.
Or unless I misunderstood you, and you would like to instead of having this shrink code, re-use resize_zone/pgdat_range to adjust end_pfn and start_pfn when offlining first or last sections.