Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp3375818ybc; Thu, 21 Nov 2019 07:27:16 -0800 (PST) X-Google-Smtp-Source: APXvYqxEYuUlYb6vAECpEOSeREI468HThalXSUCnF2RzQyAVb5O7i115b4FTW1SlX00ESpm16DUa X-Received: by 2002:a7b:c4c5:: with SMTP id g5mr6325455wmk.149.1574350035916; Thu, 21 Nov 2019 07:27:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574350035; cv=none; d=google.com; s=arc-20160816; b=LASOL9DYv2kbwKgDuHD0HDpPjEWqWAB8bT44+f9BsV3JzIwp/BKq9NWHU/SWeTs38e yd2XRsKgxeKV+JkKr9DJ+CMwbs04R0ygM+tjWT0E9wJg1pSEmeD86cTauNOe0qFNnLHb 5L1S8k4AI5aHG97VHKVCCxeSBQ743MsZgPRB6fM2nP6TZ0q7S+rsMrBd7GpR/DNw+HGH QEVNBCL0ihDvrSgU/53xz6d2w11TyVPHSi3xJ7PX/82KT3CIauWloCKEir9gDEK55nmL NxZVUHrXP5cvoeyab8ZE847xfXVlLrGNXc6Xhimb65WLMaOhOzHI+I6zj0VzvJMFLYjL VNpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=UY2PqINtVXfePtPmHsRVUz1n3qjbR4pM0eDEaufRvtc=; b=tpchK/r83hZMjbZGA2qnmchHPmJ5uEqwaBxABVDXLSzjmRHLREtmjoB1N0iHmoHOW9 6pK25ESZSOvQLFSEgbtE0jJ/smBGThtOZ+K+6odecXMV15WchUXFgRDuM/okI+486LJ6 Qoilaxf0cejXkBlGCF8Zl21r6M7mkwgWEh4tK9PYhJ6bfe5opRJ6m32JpnP103bJsbaG 2PsvSVwtdzUEqV/kHGME+oC27EJk3WXnczfp3zjC19ByF46OQ6zlR2VP+loV6kmOsJ2q 45z6sIZCZAjKtF4xXxXvCyl94lpUT8OX/mY2AkvtSObC88Cw7G4BLlgtGEjpEbiCjBMP poHQ== 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 bs2si2241352edb.354.2019.11.21.07.26.51; Thu, 21 Nov 2019 07:27:15 -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 S1726968AbfKUPWl (ORCPT + 99 others); Thu, 21 Nov 2019 10:22:41 -0500 Received: from relay5-d.mail.gandi.net ([217.70.183.197]:35953 "EHLO relay5-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726822AbfKUPWl (ORCPT ); Thu, 21 Nov 2019 10:22:41 -0500 X-Originating-IP: 153.3.140.100 Received: from localhost.localdomain.localdomain (unknown [153.3.140.100]) (Authenticated sender: fly@kernel.page) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id 0D51E1C000C; Thu, 21 Nov 2019 15:22:32 +0000 (UTC) From: Pengfei Li To: akpm@linux-foundation.org Cc: mgorman@techsingularity.net, mhocko@kernel.org, vbabka@suse.cz, cl@linux.com, iamjoonsoo.kim@lge.com, guro@fb.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Pengfei Li Subject: [RFC v1 18/19] kernel, sysctl: cleanup numa_zonelist_order Date: Thu, 21 Nov 2019 23:18:10 +0800 Message-Id: <20191121151811.49742-19-fly@kernel.page> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191121151811.49742-1-fly@kernel.page> References: <20191121151811.49742-1-fly@kernel.page> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is a cleanup patch. Rename numa_zonelist_order to numa_nodelist_order, and clean up some zonelist_xxx accordingly. Signed-off-by: Pengfei Li --- include/linux/mmzone.h | 6 +++--- kernel/sysctl.c | 8 ++++---- mm/page_alloc.c | 16 ++++++++-------- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h index f1a492c13037..0423a84dfd7d 100644 --- a/include/linux/mmzone.h +++ b/include/linux/mmzone.h @@ -959,10 +959,10 @@ int sysctl_min_unmapped_ratio_sysctl_handler(struct ctl_table *, int, int sysctl_min_slab_ratio_sysctl_handler(struct ctl_table *, int, void __user *, size_t *, loff_t *); -extern int numa_zonelist_order_handler(struct ctl_table *, int, +extern int numa_nodelist_order_handler(struct ctl_table *, int, void __user *, size_t *, loff_t *); -extern char numa_zonelist_order[]; -#define NUMA_ZONELIST_ORDER_LEN 16 +extern char numa_nodelist_order[]; +#define NUMA_NODELIST_ORDER_LEN 16 #ifndef CONFIG_NEED_MULTIPLE_NODES diff --git a/kernel/sysctl.c b/kernel/sysctl.c index 50373984a5e2..040c0c561399 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c @@ -1648,11 +1648,11 @@ static struct ctl_table vm_table[] = { #endif #ifdef CONFIG_NUMA { - .procname = "numa_zonelist_order", - .data = &numa_zonelist_order, - .maxlen = NUMA_ZONELIST_ORDER_LEN, + .procname = "numa_nodelist_order", + .data = &numa_nodelist_order, + .maxlen = NUMA_NODELIST_ORDER_LEN, .mode = 0644, - .proc_handler = numa_zonelist_order_handler, + .proc_handler = numa_nodelist_order_handler, }, #endif #if (defined(CONFIG_X86_32) && !defined(CONFIG_UML))|| \ diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 146abe537300..bc24e614c296 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -5479,7 +5479,7 @@ static inline void set_last_nlist_entry(struct nlist_entry *entry) #ifdef CONFIG_NUMA -static int __parse_numa_zonelist_order(char *s) +static int __parse_numa_nodelist_order(char *s) { /* * We used to support different zonlists modes but they turned @@ -5488,27 +5488,27 @@ static int __parse_numa_zonelist_order(char *s) * not fail it silently */ if (!(*s == 'd' || *s == 'D' || *s == 'n' || *s == 'N')) { - pr_warn("Ignoring unsupported numa_zonelist_order value: %s\n", s); + pr_warn("Ignoring unsupported numa_nodelist_order value: %s\n", s); return -EINVAL; } return 0; } -static __init int setup_numa_zonelist_order(char *s) +static __init int setup_numa_nodelist_order(char *s) { if (!s) return 0; - return __parse_numa_zonelist_order(s); + return __parse_numa_nodelist_order(s); } -early_param("numa_zonelist_order", setup_numa_zonelist_order); +early_param("numa_nodelist_order", setup_numa_nodelist_order); -char numa_zonelist_order[] = "Node"; +char numa_nodelist_order[] = "Node"; /* * sysctl handler for numa_zonelist_order */ -int numa_zonelist_order_handler(struct ctl_table *table, int write, +int numa_nodelist_order_handler(struct ctl_table *table, int write, void __user *buffer, size_t *length, loff_t *ppos) { @@ -5521,7 +5521,7 @@ int numa_zonelist_order_handler(struct ctl_table *table, int write, if (IS_ERR(str)) return PTR_ERR(str); - ret = __parse_numa_zonelist_order(str); + ret = __parse_numa_nodelist_order(str); kfree(str); return ret; } -- 2.23.0