From patchwork Wed Oct 18 14:08:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kefeng Wang X-Patchwork-Id: 13427129 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 93013CDB482 for ; Wed, 18 Oct 2023 14:09:20 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 935236B01A7; Wed, 18 Oct 2023 10:09:15 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 8C02F80015; Wed, 18 Oct 2023 10:09:15 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7126D80014; Wed, 18 Oct 2023 10:09:15 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 58B156B01A7 for ; Wed, 18 Oct 2023 10:09:15 -0400 (EDT) Received: from smtpin10.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 3CE0B1A025B for ; Wed, 18 Oct 2023 14:09:15 +0000 (UTC) X-FDA: 81358764270.10.3CB7953 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by imf17.hostedemail.com (Postfix) with ESMTP id A73A040025 for ; Wed, 18 Oct 2023 14:09:12 +0000 (UTC) Authentication-Results: imf17.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf17.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.187 as permitted sender) smtp.mailfrom=wangkefeng.wang@huawei.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1697638153; a=rsa-sha256; cv=none; b=VbYHJ9FCGnWBUc3dotCf2Ix2knTu9KvQQEHyFr1+rET3CSbBiMVSBayDXVDvVXPEvJGD7K YVDPw5pN0s9NFtzlNJAbQr6mRHPY+fdWRRNknxpwfReoWYff9VIOHk8iqB6O7R93cB8r/S j61bxtmJtHMZ9zPBzQc0u+48UCv1Tlk= ARC-Authentication-Results: i=1; imf17.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf17.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.187 as permitted sender) smtp.mailfrom=wangkefeng.wang@huawei.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1697638153; 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:in-reply-to:references:references; bh=MUSi80tZ4yNk8CECWcRvMJAQ5YmLm4C/rY6QQ6q7lE8=; b=jrVqjG5AZkNi+nzV1JDMIggRQ8GvPvJTqO++67SLBRGkXOzb75Xuo4gT/zqnllfXbZaGrn Y64Vifl9sdXWuriIpEHqYSZSwziNqajWUxMsjGVsCCfGdBLURKkGyP4cJPpme8IxA9Wqqq AK467MzMjG4AOKdBFVgpQs77vLBkVtk= Received: from dggpemm100001.china.huawei.com (unknown [172.30.72.56]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4S9Xf01sH2zvQBS; Wed, 18 Oct 2023 22:04:24 +0800 (CST) Received: from localhost.localdomain (10.175.112.125) by dggpemm100001.china.huawei.com (7.185.36.93) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.31; Wed, 18 Oct 2023 22:09:08 +0800 From: Kefeng Wang To: Andrew Morton CC: , , , , , Zi Yan , Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Kefeng Wang Subject: [PATCH v3 16/19] mm: make finish_mkwrite_fault() static Date: Wed, 18 Oct 2023 22:08:03 +0800 Message-ID: <20231018140806.2783514-17-wangkefeng.wang@huawei.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20231018140806.2783514-1-wangkefeng.wang@huawei.com> References: <20231018140806.2783514-1-wangkefeng.wang@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.175.112.125] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To dggpemm100001.china.huawei.com (7.185.36.93) X-CFilter-Loop: Reflected X-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: A73A040025 X-Stat-Signature: fcj4yx1yekqyg6f6c41zwg8kg57em4s6 X-Rspam-User: X-HE-Tag: 1697638152-362698 X-HE-Meta: U2FsdGVkX1/bGvYSkb+f+XZgK+rUdZ0WUj3B0+cqMCgQ+yuSj9yqXnSi3GjOV+UrdxLyAD9rNLDncs1vbSsIi4qaHn1LeWBY+uLY8KmxmJHHbvQaflZ7uNoHDshWEdgSD2+9tE5YyeT6wGrAp+e37zY5ol22seyCeaseJFdrFlQxKQxwUNLDmp5Frojix6DS0SrHfK459mC0dBm7RxJlTFKq7TegaWfbmlEagzoP2aWYsuWTCtG1lw1IGJF5EqheXg8BdBsWxgM1W9xuyB46vxiS0mL05PxZklBlyEHquGVfTKPVOg8wyM4RQ3dctTR5hd0WBPbifegFCrp2DgVEv7Cy4JD3EAGd64IA1sFT1V3B7xQkprI7TIi+tk8HHi9kSCkB2Nej/d92xqdPdiY6imLt8IYNcEPvt1epOETwB6ozVXzVgG70qyblFI8ggBrX66JA+AeOHRdtrMs7l24Dq3o15Ez0CuDHDXnBviwkeg7U8z9ADQMPXPMSQUfjHfZlv9Xsbz+zkrxAdR/s3LP7SMRotqHdVSZz6WcgyGfOIvS9tANeJDBH/8+evnFDtv+dHsNfww8TgLHoCPOVQ+Fhibgta5VaieYEPWXuhiEDKdFto9namD/w3bVJ+jxuWGJbS4qhkoYR0yC5/C07nsAzxr8ZRYDe3ZJ2uE9oiqX/73SbyEUoX97LPrPQcHljYC6LZqYAZbnfXYW1UuRNIRaocqhTZYeNNfI7VZwqz6pzjws6D00UdbS5UaTXow2MQHQ+b+8u4jO6MQJUYQHqaMdpMZdGeJWVAGDvfGjoQp+lNopfiLTrwIPWxnBjHSiwv6R4Xvf5Xt4cM/YtzTHCHVLjH94Bdhy+BdW9RQtUD37zp+A7iPpGCkkiWlY0/A5U9FJcF4IZ/0ZJHiD37JHtKW2sn6xnuJa6RbVnef3h5yij46/1iltQORgj2UFzoqOofBHhkgdVykhbtiiG1VfWExS numD8ZxX kkKe4IxwyuopPZa6TcZRPKsqiJQv2C/SfuzNVwFGttCy1UbgWXZ+IZiWF1qtEMNoF+TbgsFaOl7NT0xkYdE7wXOMRvDGv39YvkxCcDAEPCkNPQOgbVBgRAk1RPrgRGjqg+ap8BfkE/NDuh0xD1NJe13bMg6MiaADtLl9DpFZ8EQulXV4/NswgvtcTMrZumw/mt5ly+IieYgRT50DNXvntp5WVDVbNlEYzbHsjZOJLHBDTqf4uAPP+0VYdg/Wua2ixYkHC5JDjp2A6SpFxh+jPf1DySm44knnihzYm 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: Make finish_mkwrite_fault static since it is not used outside of memory.c. Signed-off-by: Kefeng Wang --- include/linux/mm.h | 1 - mm/memory.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/include/linux/mm.h b/include/linux/mm.h index 8229137e093b..70eae2e7d5e5 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -1346,7 +1346,6 @@ void set_pte_range(struct vm_fault *vmf, struct folio *folio, struct page *page, unsigned int nr, unsigned long addr); vm_fault_t finish_fault(struct vm_fault *vmf); -vm_fault_t finish_mkwrite_fault(struct vm_fault *vmf); #endif /* diff --git a/mm/memory.c b/mm/memory.c index a1cf25a3ff16..b6cc24257683 100644 --- a/mm/memory.c +++ b/mm/memory.c @@ -3272,7 +3272,7 @@ static vm_fault_t wp_page_copy(struct vm_fault *vmf) * Return: %0 on success, %VM_FAULT_NOPAGE when PTE got changed before * we acquired PTE lock. */ -vm_fault_t finish_mkwrite_fault(struct vm_fault *vmf) +static vm_fault_t finish_mkwrite_fault(struct vm_fault *vmf) { WARN_ON_ONCE(!(vmf->vma->vm_flags & VM_SHARED)); vmf->pte = pte_offset_map_lock(vmf->vma->vm_mm, vmf->pmd, vmf->address,