Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752098AbbFYSi6 (ORCPT ); Thu, 25 Jun 2015 14:38:58 -0400 Received: from userp1040.oracle.com ([156.151.31.81]:27215 "EHLO userp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751451AbbFYSiv (ORCPT ); Thu, 25 Jun 2015 14:38:51 -0400 Date: Thu, 25 Jun 2015 20:38:36 +0200 From: Daniel Kiper To: David Vrabel Cc: xen-devel@lists.xenproject.org, Konrad Rzeszutek Wilk , Boris Ostrovsky , linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCHv1 5/8] xen/balloon: rationalize memory hotplug stats Message-ID: <20150625183836.GM14050@olila.local.net-space.pl> References: <1435252263-31952-1-git-send-email-david.vrabel@citrix.com> <1435252263-31952-6-git-send-email-david.vrabel@citrix.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1435252263-31952-6-git-send-email-david.vrabel@citrix.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Source-IP: aserv0022.oracle.com [141.146.126.234] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1115 Lines: 24 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 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. Daniel -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/