On Wed 28-11-18 13:51:42, 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. > > If by end_pfn - start_pfn you mean zone_end_pfn - zone_start_pfn, > then we would still need to change zone_start_pfn when removing > the first section, and adjust spanned_pages in case we remove the last > section, > would not we? Why? Again, how is removing the last/first section of the zone any different from any other section? -- Michal Hocko SUSE Labs