Received: by 10.223.164.202 with SMTP id h10csp2648516wrb; Mon, 27 Nov 2017 22:03:22 -0800 (PST) X-Google-Smtp-Source: AGs4zMZ3Kc+uKxPkDpi41qW+vVP0Srb6FD0I6J3oAltsbs42GzeA3ufOO7wWFGUonbFGefNQduMS X-Received: by 10.84.252.23 with SMTP id x23mr41727772pll.54.1511849002539; Mon, 27 Nov 2017 22:03:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511849002; cv=none; d=google.com; s=arc-20160816; b=zzmia1yJl5NM37a+Mj/OnpZTHAkCST3+j4s6+JHevPmVdHE+4akMFBJrgnsNwHw2OZ coTlN6Eb4RlGfaPBP+dTnrQXqputB648IWfy44DpG8XoBByQm+78KPy8OFDPRILIq0w+ 7ZTLncTAw5RCZkloH42//5w95yV1QoBf+vMmOPU7O5lXO7ozvUiivife/R3jMHl0kpRq e7B/QeNN6d1FpFYmHKq4UqdsC0ll+Dea4zR6spgjNJX55B5J/p0+Y6Gmnc9QtQTs2V2B LrDUKq75ogM/DEVMekgT/356JLcoivTbtEgGJBlfdEpeI1ab9h7HwMlNRNzznBFIEL1g ZF1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=eLNxBTepnQfrNcc1vXvNlBqI2yQaPuimPSu/iMLuQT8=; b=uKf6KM2jLxH0hS8iXLTtWqZ3ewPChpN+hwxmznaQoHmTC6vCcIUkEYYpohpx7g4GB/ k5X4ljrHueWJjE6aLClOLnFi8NvOEETfBPJYABYbAVrh/50Mn5Ysl2OsvAx5tpAQew4B VCy/Vu6EhLokAFLbaPmYR6+0P/a72xIrjwy0fZsw5jrTx5GGqXYG4sCvADlNCWVcYFHi 8fd9fh20h2OpHuim3BcH0W8O2XwEqVOD7tET5Gdb18L3UUloKPFVPzn5VV/kR+8qsfhk D30S95qD91Jbw3M5OlHxx2u4fJav4UUHPfiA9rFAHYz5cfAu60yXinJHMzB+IshTvDuT uhzg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s13si24465600plp.502.2017.11.27.22.03.10; Mon, 27 Nov 2017 22:03:22 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751494AbdK1GC3 (ORCPT + 77 others); Tue, 28 Nov 2017 01:02:29 -0500 Received: from mga11.intel.com ([192.55.52.93]:49655 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751406AbdK1GCZ (ORCPT ); Tue, 28 Nov 2017 01:02:25 -0500 Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 27 Nov 2017 22:02:24 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.44,467,1505804400"; d="scan'208";a="181373184" Received: from kemi-desktop.sh.intel.com ([10.239.13.118]) by fmsmga006.fm.intel.com with ESMTP; 27 Nov 2017 22:02:21 -0800 From: Kemi Wang To: Greg Kroah-Hartman , Andrew Morton , Michal Hocko , Vlastimil Babka , Mel Gorman , Johannes Weiner , Christopher Lameter , YASUAKI ISHIMATSU , Andrey Ryabinin , Nikolay Borisov , Pavel Tatashin , David Rientjes , Sebastian Andrzej Siewior Cc: Dave , Andi Kleen , Tim Chen , Jesper Dangaard Brouer , Ying Huang , Aaron Lu , Aubrey Li , Kemi Wang , Linux MM , Linux Kernel Subject: [PATCH 2/2] mm: Rename zone_statistics() to numa_statistics() Date: Tue, 28 Nov 2017 14:00:24 +0800 Message-Id: <1511848824-18709-2-git-send-email-kemi.wang@intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1511848824-18709-1-git-send-email-kemi.wang@intel.com> References: <1511848824-18709-1-git-send-email-kemi.wang@intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since numa statistics has been separated from zone statistics framework, but the functionality of zone_statistics() updates numa counters. Thus, the function name makes people confused. So, change the name to numa_statistics() as well as its call sites accordingly. Signed-off-by: Kemi Wang --- mm/page_alloc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 142e1ba..61fa717 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -2783,7 +2783,7 @@ int __isolate_free_page(struct page *page, unsigned int order) * * Must be called with interrupts disabled. */ -static inline void zone_statistics(struct zone *preferred_zone, struct zone *z) +static inline void numa_statistics(struct zone *preferred_zone, struct zone *z) { #ifdef CONFIG_NUMA enum numa_stat_item local_stat = NUMA_LOCAL; @@ -2845,7 +2845,7 @@ static struct page *rmqueue_pcplist(struct zone *preferred_zone, page = __rmqueue_pcplist(zone, migratetype, pcp, list); if (page) { __count_zid_vm_events(PGALLOC, page_zonenum(page), 1 << order); - zone_statistics(preferred_zone, zone); + numa_statistics(preferred_zone, zone); } local_irq_restore(flags); return page; @@ -2893,7 +2893,7 @@ struct page *rmqueue(struct zone *preferred_zone, get_pcppage_migratetype(page)); __count_zid_vm_events(PGALLOC, page_zonenum(page), 1 << order); - zone_statistics(preferred_zone, zone); + numa_statistics(preferred_zone, zone); local_irq_restore(flags); out: -- 2.7.4 From 1585252320625789228@xxx Mon Nov 27 20:27:03 +0000 2017 X-GM-THRID: 1585236791885975812 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread