From patchwork Tue Nov 15 22:26:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tip-bot2 for Thomas Gleixner X-Patchwork-Id: 20617 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2971930wru; Tue, 15 Nov 2022 14:30:27 -0800 (PST) X-Google-Smtp-Source: AA0mqf6qThpkJgLHHZMZcPrOMXWyea6OCi6SzwzGByLwqv3fr31wTGLyW6TDqGRM8b99pLvc/z3Q X-Received: by 2002:a05:6402:5005:b0:462:a00e:1dab with SMTP id p5-20020a056402500500b00462a00e1dabmr16758551eda.135.1668551427789; Tue, 15 Nov 2022 14:30:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668551427; cv=none; d=google.com; s=arc-20160816; b=ujLsC+EgM2PB0fJ21p2M2WbtDzWl62wbY2aIEZ9mmXS022dPq9CFDfbFhDcknFBusj I1ZH8M6X8K+952kskvfOofCLDlaTvKedyRnbU3BYxnBXZWWdDf1wuhjvez/U0Er/G0Zf bpD69jro0c0l+erncMTm7lJX03s0nCtl6yowIOq0HJAdXaQdwoXyezxO2m6IBOXdUxdg 2OzBUPRs+89BwuPYNWv3nVgrQbg6Lr8KN0JEAh/lqHKqRsSGIKG/vd9q0uxEO8YVC433 e3ELTELF+ChQP2A7ynMzqFaZCBsc3jXrDeMYElkcKezYUHRKHDJzF9q7X4ElK4XOBf+T b6rw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:cc:subject:to:reply-to:sender:from :dkim-signature:dkim-signature:date; bh=c33MI+BxwG+cQfCEElhwxlr9SkSYKKNVNQBEdF7CgOU=; b=MANFyM6HLL6DIi8BD559808EXozH+IRvZTBjg8zEAMhIXQ4zWBDz1SXBco+12X71Kr mp5mLM/K/5bnd7/6wfAvEDs3HOxOIIDfa9E09C+S5sxL/zDQUrHgZcx1uz7k7flUHFVV PdNjIcASRMOz3ItYZA6fsfy3dnwwpQ66MyJf2LvAP6dowc2MbrwZBdsWSNIDarnA8KnX KbH/EKgKUC2RXTVWDINjB6AGZKppxefb5ITBC6CKb1mWdVQOr4MY1vak8zzvTnlu9QW7 votDtP2SlN5dOmij+l0myTieh9nXIR+suDObv2goQnEl441TZ193CRL2tTtxxD/im9nW bMGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=xsvBfcBC; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=9KNmK44q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p16-20020a056402501000b00462c7bbc03esi14230237eda.114.2022.11.15.14.30.03; Tue, 15 Nov 2022 14:30:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=xsvBfcBC; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=9KNmK44q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238611AbiKOW1U (ORCPT + 99 others); Tue, 15 Nov 2022 17:27:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60354 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232127AbiKOW0m (ORCPT ); Tue, 15 Nov 2022 17:26:42 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3321B317CB; Tue, 15 Nov 2022 14:26:28 -0800 (PST) Date: Tue, 15 Nov 2022 22:26:25 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1668551186; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=c33MI+BxwG+cQfCEElhwxlr9SkSYKKNVNQBEdF7CgOU=; b=xsvBfcBCyWrbo2HAvTevyzIUUHPapyZ1/QhsFlkYDXLphhySIc46vOoXgdLEmVNAvFcyxC it7Vh29jeQ/FMwUJltxLx/FMH00Zw7zTjnW6FYVtaFLwplx35XAVhZ8tj2hMfOP0n6MvgS pZgexq9L/rsAof2YvRPO5Zj42BkkiVpdLEr8QpSY4bvD9am6pNfcO8G6z5yqVIkAZy+1jT xWfUfhsK8P1DGq1hNJ1Tq+G8Zihiug7gVqX61Rru55G+eOQcr2Kwpg8gmMMZPLHJicx+ko LHojiXhPbV/uQdMAdsiUw2cjNZ2NYQwMbUdi6F7t/QL84lgsI29VlGSqAUURyA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1668551186; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=c33MI+BxwG+cQfCEElhwxlr9SkSYKKNVNQBEdF7CgOU=; b=9KNmK44qJ4UY98cKp+PDl1WRdDB++PayVhLd9zs7g0rHruUmQh6XQ3AyuS4SlV+Nq9LyoC HEKbJdvWwan8lhCg== From: "tip-bot2 for Peter Zijlstra" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/mm] x86/mm: Rename __change_page_attr_set_clr(.checkalias) Cc: "Peter Zijlstra (Intel)" , x86@kernel.org, linux-kernel@vger.kernel.org MIME-Version: 1.0 Message-ID: <166855118563.4906.986870700026077869.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749602981771955195?= X-GMAIL-MSGID: =?utf-8?q?1749602981771955195?= The following commit has been merged into the x86/mm branch of tip: Commit-ID: abfb852313e49a75dca0f3d1bc2ad73960592c0a Gitweb: https://git.kernel.org/tip/abfb852313e49a75dca0f3d1bc2ad73960592c0a Author: Peter Zijlstra AuthorDate: Thu, 10 Nov 2022 13:34:00 +01:00 Committer: Peter Zijlstra CommitterDate: Tue, 15 Nov 2022 22:29:58 +01:00 x86/mm: Rename __change_page_attr_set_clr(.checkalias) Now that the checkalias functionality is taken by CPA_NO_CHECK_ALIAS rename the argument to better match is remaining purpose: primary, matching __change_page_attr(). Signed-off-by: Peter Zijlstra (Intel) Link: https://lkml.kernel.org/r/20221110125544.661001508%40infradead.org --- arch/x86/mm/pat/set_memory.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/x86/mm/pat/set_memory.c b/arch/x86/mm/pat/set_memory.c index beef774..220361c 100644 --- a/arch/x86/mm/pat/set_memory.c +++ b/arch/x86/mm/pat/set_memory.c @@ -1641,7 +1641,7 @@ repeat: return err; } -static int __change_page_attr_set_clr(struct cpa_data *cpa, int checkalias); +static int __change_page_attr_set_clr(struct cpa_data *cpa, int primary); /* * Check the directmap and "high kernel map" 'aliases'. @@ -1718,7 +1718,7 @@ static int cpa_process_alias(struct cpa_data *cpa) return 0; } -static int __change_page_attr_set_clr(struct cpa_data *cpa, int checkalias) +static int __change_page_attr_set_clr(struct cpa_data *cpa, int primary) { unsigned long numpages = cpa->numpages; unsigned long rempages = numpages; @@ -1742,13 +1742,13 @@ static int __change_page_attr_set_clr(struct cpa_data *cpa, int checkalias) if (!debug_pagealloc_enabled()) spin_lock(&cpa_lock); - ret = __change_page_attr(cpa, checkalias); + ret = __change_page_attr(cpa, primary); if (!debug_pagealloc_enabled()) spin_unlock(&cpa_lock); if (ret) goto out; - if (checkalias && !(cpa->flags & CPA_NO_CHECK_ALIAS)) { + if (primary && !(cpa->flags & CPA_NO_CHECK_ALIAS)) { ret = cpa_process_alias(cpa); if (ret) goto out;