From patchwork Sun Jul 23 03:31:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miaohe Lin X-Patchwork-Id: 13323084 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 A2333C00528 for ; Sun, 23 Jul 2023 03:31:25 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id EA1A46B0072; Sat, 22 Jul 2023 23:31:24 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id E515F6B0074; Sat, 22 Jul 2023 23:31:24 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D41906B0075; Sat, 22 Jul 2023 23:31:24 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id C4CAF6B0072 for ; Sat, 22 Jul 2023 23:31:24 -0400 (EDT) Received: from smtpin27.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id F0690140798 for ; Sun, 23 Jul 2023 03:31:23 +0000 (UTC) X-FDA: 81041451246.27.0454F3D Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by imf26.hostedemail.com (Postfix) with ESMTP id 98E41140005 for ; Sun, 23 Jul 2023 03:31:20 +0000 (UTC) Authentication-Results: imf26.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf26.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.187 as permitted sender) smtp.mailfrom=linmiaohe@huawei.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1690083081; a=rsa-sha256; cv=none; b=pyqhGSNeoBjqVhjA2dWLGyFPQhfoAws5Pnz6uHx2sS8dIuqUk7MuGeJIYzoGmj8JLk1g3T O2ay3K24oAS8+aNaLmt4KbRgTtTiVioma8Ijv2JAGxox+ucA97HtpSwHtwPEDcA+GoNxy4 tC4w+mZBqW4H86EowfK2BW2jn9S3tdo= ARC-Authentication-Results: i=1; imf26.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf26.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.187 as permitted sender) smtp.mailfrom=linmiaohe@huawei.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1690083081; h=from:from:sender: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:in-reply-to: references; bh=LdlVpZB/E/rLqzY8xYQlxaelSWj2ifc3311RjdGbC18=; b=y9pmkJqFz1me3zz3btQOPzOB2BXIyBkHKXWrqn38WIGxeAOGEMrZRgCP9Ay+1GdZ49RL2p 2GJmpTVreZG8GqdfNDdu1I90QLSQFJpN42ujtGq1zGZkksdJF5VFTrRT/ueIO/LUPjqhCk uUpWMFXlhV+c+x5oYsL7LL4a6q4rSPU= Received: from canpemm500002.china.huawei.com (unknown [172.30.72.54]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4R7phd5lYTzrRpr; Sun, 23 Jul 2023 11:30:25 +0800 (CST) Received: from huawei.com (10.174.151.185) by canpemm500002.china.huawei.com (7.192.104.244) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Sun, 23 Jul 2023 11:31:14 +0800 From: Miaohe Lin To: CC: , , Subject: [PATCH] mm/mprotect: fix obsolete function name in change_pte_range() Date: Sun, 23 Jul 2023 11:31:14 +0800 Message-ID: <20230723033114.3224409-1-linmiaohe@huawei.com> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 X-Originating-IP: [10.174.151.185] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To canpemm500002.china.huawei.com (7.192.104.244) X-CFilter-Loop: Reflected X-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: 98E41140005 X-Stat-Signature: ceqyhk87dps54howxfn6kd87p4m75b57 X-Rspam-User: X-HE-Tag: 1690083080-222181 X-HE-Meta: U2FsdGVkX1/q9mzTw3cAX8ahqUQbGTv9kGPjSNwwgLaB2BWihl5jf3OdreWqHNSNVYOiqPJm9slhuezXEwLAUs6yY2jDpkvnvuDsO6b4nSlOncb9tAwHAC62YzXhLpos/u1JwVcltfJXJNKLTVSj3KMflcJ2qXeL47f2HxQ2J5YrnHQLHisCACBELaOrLOuPWie4cWfTvKpZUJl/OknPJIC8i7/ymLw4mNGfdueLT4JZPM49Ak+VGAxUzMSAS251+kr52ZgdqaEUWfE/Dz75sY6uXYiwMte/0ioO19jZMJqabvo8iK8p6tkjo3EiyCpTpjjrEeacJqAEvWhrrbuwx8hR3FZH3fCQPU8W/GmBlxxQpMRWrDF6w8heTnEN6Wypo/R4+ZLt2ANK3ZWXe7Rqg8zOTTOa+TRpWjYqQAQe35JtKqeVUzC6wqcoO+3GQOLonnbLYYbT52uz2FhyNirbpPcdVsnQE64J1T5/kBSjxHYfeu4mvV+OUeewqZrLmCXlGwXVC06TbrhYxD+hKms89wgz3BRc6FfxO8ZOFEI5hY4SVf+qBTHG9MRTSO8W0dfp76w+c4FHpt6lL/VwYgDVb5MCIHT6wgvLzFh3xVCIJ5msHU98H6pEwaxyL9X0mXxwHGnwLTqX0dEuk7+CBTyg3NK5FOVS3JZh+/lhvrO3CiXLHI5BEZ0oZd+2Qb2Uyx/RfQP+mkKn4CjhtAooI8BwqBnxltA3KykwhkBb+ZodtKYONo5Ya+R0H58yi6iaWf388P1Ar7Uf+eWbmrFO1vaPd+mmt2jHy42TCBc96QS2mNAqutmVmcyQ9mec7EfwT3bu0BBoSZp9sV/WMw6tTag3PwIkdnHTtIWoEJR89spcVEr1ZZgPw0W+3rOGxXK8SJLy5kihBa5qJw5jMiaGKqm5gPegh2EWNicSZt8CjeCHmgMut3MFz9RRPXsF2UJqv0MYT1pBtJr05HEJZeT9sQl MCukztYT 9js8hBlKqBQfu/+SGpVKSD0QVER2nWjM6v21YZVp6Mkmh7t2G3Cs3gkIIpEDnxUlHke8pyXNR3JtI2Sj4Tx/CILtExD42fNN5mMJxf1n4e+pJt6iDbONUn4QcQMZXfGT3HlwcJLVis6yhwgU79/OdO/fhzO7sJZxYwgi0P6/hHqRMY8yoWv/NUvFMhdGuAwoOUj1c 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: Since commit 79a1971c5f14 ("mm: move the copy_one_pte() pte_present check into the caller"), the explanation of preserving soft-dirtiness is moved into copy_nonpresent_pte(). Update corresponding comment. Signed-off-by: Miaohe Lin Reviewed-by: David Hildenbrand --- mm/mprotect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/mprotect.c b/mm/mprotect.c index 5c3112d92466..3f36c88a238e 100644 --- a/mm/mprotect.c +++ b/mm/mprotect.c @@ -213,7 +213,7 @@ static long change_pte_range(struct mmu_gather *tlb, } else if (is_writable_device_private_entry(entry)) { /* * We do not preserve soft-dirtiness. See - * copy_one_pte() for explanation. + * copy_nonpresent_pte() for explanation. */ entry = make_readable_device_private_entry( swp_offset(entry));