From patchwork Fri Apr 29 13:35:38 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Qi Zheng X-Patchwork-Id: 12832009 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id E4B14C433F5 for ; Fri, 29 Apr 2022 13:36:43 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 7AD786B0078; Fri, 29 Apr 2022 09:36:43 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 75CF76B007B; Fri, 29 Apr 2022 09:36:43 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 624876B007D; Fri, 29 Apr 2022 09:36:43 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (relay.a.hostedemail.com [64.99.140.24]) by kanga.kvack.org (Postfix) with ESMTP id 553FC6B0078 for ; Fri, 29 Apr 2022 09:36:43 -0400 (EDT) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 282762070D for ; Fri, 29 Apr 2022 13:36:43 +0000 (UTC) X-FDA: 79410016686.05.725399A Received: from mail-pj1-f51.google.com (mail-pj1-f51.google.com [209.85.216.51]) by imf17.hostedemail.com (Postfix) with ESMTP id 6F2EA40066 for ; Fri, 29 Apr 2022 13:36:32 +0000 (UTC) Received: by mail-pj1-f51.google.com with SMTP id w17-20020a17090a529100b001db302efed6so5764948pjh.4 for ; Fri, 29 Apr 2022 06:36:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=VfzL8+rKvBDkdHAWJz+BdGeabJSdieMoCyrARJf31C8=; b=Dqjg2bggCbl33T/45lA7Ve3w9lBbtFVa1mXx8Ejbfs5Il/fK1BO/bf2J+ibvJhiS+Y l23GVOPL2ey3vEhQd+FUJsO23dOCMwlDnUhlsabAJNQ3g/BLU+l3S8kF5q8xLqzcTLa9 N+2i4eoix1OJOltamNeXZ/RGg3nTxJmJ0nzjpfCx0serQBaJh+6ocZmzJ/QUqMKiG8zZ C7mOsKzMS1pHhUig4gWLkDlR56bIK6XpC/halFlOpppKGwDWVvjdEs/vIuYtRhDEisEk ZvmIPR0cAqycBsaDnGQH53owG2POMRJWUrpPJ9xjBwVSchPUFsRwPJYuD3dyOj2bgPPh wFOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=VfzL8+rKvBDkdHAWJz+BdGeabJSdieMoCyrARJf31C8=; b=rS1d8davBQONoyCjXnwnXJTA90eUXzxwzBp5WGqtPPtBKA0QZm6CDIi5QDoBmyzq7i nE3egNS39WQ34bc/BGWemybqpk0az+24isHeS4G+dhe3n3VRuCejwqkf6y4LJwCbnmYA Hakbh+9rZpVrPMZ0rNvtOmOJPyxZ6Ga2i2pqCmExJG9XzNDqnaVgvmyfloxV3uRLqc7Y zPupo2fphPmIbJq8MD5VIuxI1uqO/KTbytk44FUw7Fy0NDUCVx9FBkZDIHcVvdQLjj8D OJEJRlfh4QjmDPE8fFoTOoSXJdEs44paMa8eNlgR6aqUARG2gX49z609ogcoMYvMvo1J b+nQ== X-Gm-Message-State: AOAM532Bx/Z91YxHDjuoJkXyMnPpsWnUDnrxlkjf+SXpn15c3pPLDmwP im7ovAaUUj/+FhquSoAfChonJA== X-Google-Smtp-Source: ABdhPJwdG27EhVPvJrwtYvxik6bbTXqrOGosOq9mejsaq+voyl0UgeehoOYZEA+LTuFQKgY2z1Cn4A== X-Received: by 2002:a17:903:1051:b0:15c:f02f:cd0e with SMTP id f17-20020a170903105100b0015cf02fcd0emr31282057plc.81.1651239400770; Fri, 29 Apr 2022 06:36:40 -0700 (PDT) Received: from localhost.localdomain ([139.177.225.240]) by smtp.gmail.com with ESMTPSA id m8-20020a17090a414800b001d81a30c437sm10681977pjg.50.2022.04.29.06.36.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Apr 2022 06:36:40 -0700 (PDT) From: Qi Zheng To: akpm@linux-foundation.org, tglx@linutronix.de, kirill.shutemov@linux.intel.com, mika.penttila@nextfour.com, david@redhat.com, jgg@nvidia.com, tj@kernel.org, dennis@kernel.org, ming.lei@redhat.com Cc: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, songmuchun@bytedance.com, zhouchengming@bytedance.com, Qi Zheng Subject: [RFC PATCH 04/18] mm: convert to use ptep_clear() in pte_clear_not_present_full() Date: Fri, 29 Apr 2022 21:35:38 +0800 Message-Id: <20220429133552.33768-5-zhengqi.arch@bytedance.com> X-Mailer: git-send-email 2.24.3 (Apple Git-128) In-Reply-To: <20220429133552.33768-1-zhengqi.arch@bytedance.com> References: <20220429133552.33768-1-zhengqi.arch@bytedance.com> MIME-Version: 1.0 Authentication-Results: imf17.hostedemail.com; dkim=pass header.d=bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=Dqjg2bgg; dmarc=pass (policy=none) header.from=bytedance.com; spf=pass (imf17.hostedemail.com: domain of zhengqi.arch@bytedance.com designates 209.85.216.51 as permitted sender) smtp.mailfrom=zhengqi.arch@bytedance.com X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: 6F2EA40066 X-Rspam-User: X-Stat-Signature: 9jabdjizdn9zbehxujcx7871k4u5jyx1 X-HE-Tag: 1651239392-201204 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: After commit 08d5b29eac7d ("mm: ptep_clear() page table helper"), the ptep_clear() can be used to track the clearing of PTE page table entries, but pte_clear_not_present_full() is not covered, so also convert it to use ptep_clear(), we will need this call in subsequent patches. Signed-off-by: Qi Zheng --- include/linux/pgtable.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/pgtable.h b/include/linux/pgtable.h index f4f4077b97aa..bed9a559d45b 100644 --- a/include/linux/pgtable.h +++ b/include/linux/pgtable.h @@ -423,7 +423,7 @@ static inline void pte_clear_not_present_full(struct mm_struct *mm, pte_t *ptep, int full) { - pte_clear(mm, address, ptep); + ptep_clear(mm, address, ptep); } #endif