Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp3372196ybc; Thu, 21 Nov 2019 07:24:24 -0800 (PST) X-Google-Smtp-Source: APXvYqx6c2EmZNmqQY/SbvNvOH/Lu9kU4cyp7O8BJnpmcmx3x15NXYiP/mT0yJUlraBdJlnBQszm X-Received: by 2002:a05:6000:150:: with SMTP id r16mr11126139wrx.313.1574349864750; Thu, 21 Nov 2019 07:24:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574349864; cv=none; d=google.com; s=arc-20160816; b=gNbshzCHW7zVbYxv+Uz4Ca2zSP72AokMp0jUURoqmGyEtNqceLFuPF31NS5FrrgqlQ 5ryqHHz96uTE1TPsF70keC6lcvgzR9qVCMyh/1gtewT0SY9KRJ+FEAJzotKNIEjnSUPe wnK2XkVo8XR8vOdgsva2FC60E3TD/qZm7f0mS7m/WqJnqzsGqhscwoYevyyFpptZdHPe DQOmgxhXw501pFFywoECDvxDffv4YKyquZ+JlYxDl/pvwbK0Kth2YfDUmqq5j5nsBZXl NC7httD1y2cEQcXcSJDpsvj961rulNSYMy+frVm4lyPwikYR9A9rbSnAVoXno3ZdZH/p fQAA== 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=HunFPPb14Tu4gSdvOuGr5BOk1/zi3uVppSRGk2ihleM=; b=mOdeOlAVrseC6g5q1Z2yh21u5yxLJtBDCHUKjscNKapoxOgmy1eOjhGv/T+wAySl1D IoYyiAs43lq0ZGzsQBt9/49HIPxHj1jBkionGJwIK0S11dufdjiFD7Yp6gdfJJPkBAh0 CFkoNHtGX+JiH7v0n1s01hYrFmR7ApnVzcHQGPAIuRoHhiyMS/X0yMaQV3WnS3l86ULp 8WkdPfKsw+OOZUhiZt/Ja5PkG6ZtxlCRbUT8N9qJtHFTYP+3Ev8A5/moHeJSHabGUfUX FQ0L/Jhv2B96DbVLSon37gT/DUhTYJnFvQWQ8QBMp/mPmoWBS+rDGEjOivsZfSsdQdZj DK1g== 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 l40si2468628edb.432.2019.11.21.07.24.00; Thu, 21 Nov 2019 07:24:24 -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 S1727338AbfKUPWH (ORCPT + 99 others); Thu, 21 Nov 2019 10:22:07 -0500 Received: from relay5-d.mail.gandi.net ([217.70.183.197]:36393 "EHLO relay5-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726784AbfKUPWG (ORCPT ); Thu, 21 Nov 2019 10:22:06 -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 E9F8B1C000A; Thu, 21 Nov 2019 15:21:47 +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 14/19] mm, compaction: rename compaction_zonelist_suitable Date: Thu, 21 Nov 2019 23:18:06 +0800 Message-Id: <20191121151811.49742-15-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 compaction_zonelist_suitable to compaction_nodelist_suitable. Signed-off-by: Pengfei Li --- include/linux/compaction.h | 2 +- mm/compaction.c | 2 +- mm/page_alloc.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/linux/compaction.h b/include/linux/compaction.h index 4b898cdbdf05..3ba55eb7c353 100644 --- a/include/linux/compaction.h +++ b/include/linux/compaction.h @@ -177,7 +177,7 @@ static inline bool compaction_withdrawn(enum compact_result result) } -bool compaction_zonelist_suitable(struct alloc_context *ac, int order, +bool compaction_nodelist_suitable(struct alloc_context *ac, int order, int alloc_flags); extern int kcompactd_run(int nid); diff --git a/mm/compaction.c b/mm/compaction.c index d9f42e18991c..91581ab1d593 100644 --- a/mm/compaction.c +++ b/mm/compaction.c @@ -2036,7 +2036,7 @@ enum compact_result compaction_suitable(struct zone *zone, int order, return ret; } -bool compaction_zonelist_suitable(struct alloc_context *ac, int order, +bool compaction_nodelist_suitable(struct alloc_context *ac, int order, int alloc_flags) { struct nlist_traverser t; diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 5c96d1ecd643..3987b8e97158 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -3967,7 +3967,7 @@ should_compact_retry(struct alloc_context *ac, int order, int alloc_flags, * to work with, so we retry only if it looks like reclaim can help. */ if (compaction_needs_reclaim(compact_result)) { - ret = compaction_zonelist_suitable(ac, order, alloc_flags); + ret = compaction_nodelist_suitable(ac, order, alloc_flags); goto out; } -- 2.23.0