On Thu, Jun 25, 2015 at 08:38:36PM +0200, Daniel Kiper wrote: > On Thu, Jun 25, 2015 at 06:11:00PM +0100, David Vrabel wrote: > > The stats used for memory hotplug make no sense and are fiddled with > > in odd ways. Remove them and introduce total_pages to track the total > > number of pages (both populated and unpopulated) including those within > > hotplugged regions (note that this includes not yet onlined pages). > > > > This will be useful when deciding whether additional memory needs to be > > hotplugged. > > > > Signed-off-by: David Vrabel <david.vrabel@xxxxxxxxxx> > > Nice optimization! I suppose that it is remnant from very early > version of memory hotplug. Probably after a few patch series > iterations hotplug_pages and balloon_hotplug lost their meaning > and I did not catch it. Additionally, as I can see there is not > any consumer for total_pages here. So, I think that we can go > further and remove this obfuscated code at all. Err... Ignore that. I missed next patch... Should not both of them merged in one or commit comment contain clear info that this will be used by next patch. Daniel -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>