From patchwork Thu May 13 09:39:31 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Xiang X-Patchwork-Id: 12255407 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY,URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 86C5DC433ED for ; Thu, 13 May 2021 09:39:48 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id BF6C461439 for ; Thu, 13 May 2021 09:39:47 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BF6C461439 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=zlingsmart.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 570656B0036; Thu, 13 May 2021 05:39:47 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 520656B006E; Thu, 13 May 2021 05:39:47 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 3E7986B0070; Thu, 13 May 2021 05:39:47 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0189.hostedemail.com [216.40.44.189]) by kanga.kvack.org (Postfix) with ESMTP id 087AE6B0036 for ; Thu, 13 May 2021 05:39:46 -0400 (EDT) Received: from smtpin14.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id 9F1DC8249980 for ; Thu, 13 May 2021 09:39:46 +0000 (UTC) X-FDA: 78135710772.14.834FCCB Received: from out28-5.mail.aliyun.com (out28-5.mail.aliyun.com [115.124.28.5]) by imf21.hostedemail.com (Postfix) with ESMTP id DC78FE000123 for ; Thu, 13 May 2021 09:39:39 +0000 (UTC) X-Alimail-AntiSpam: AC=CONTINUE;BC=0.197983|-1;CH=green;DM=|CONTINUE|false|;DS=CONTINUE|ham_system_inform|0.0093466-3.37296e-05-0.99062;FP=0|0|0|0|0|-1|-1|-1;HT=ay29a033018047199;MF=liu.xiang@zlingsmart.com;NM=1;PH=DS;RN=6;RT=6;SR=0;TI=SMTPD_---.KClSHxe_1620898781; Received: from localhost(mailfrom:liu.xiang@zlingsmart.com fp:SMTPD_---.KClSHxe_1620898781) by smtp.aliyun-inc.com(10.194.99.21); Thu, 13 May 2021 17:39:41 +0800 From: Liu Xiang To: akpm@linux-foundation.org Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, liuxiang_1999@126.com, liuxiang1999@gmail.com, Liu Xiang Subject: [PATCH] mm/memory.c: fix comment of finish_mkwrite_fault() Date: Thu, 13 May 2021 17:39:31 +0800 Message-Id: <20210513093931.15234-1-liu.xiang@zlingsmart.com> X-Mailer: git-send-email 2.17.1 X-Rspamd-Queue-Id: DC78FE000123 Authentication-Results: imf21.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf21.hostedemail.com: domain of liu.xiang@zlingsmart.com designates 115.124.28.5 as permitted sender) smtp.mailfrom=liu.xiang@zlingsmart.com X-Rspamd-Server: rspam04 X-Stat-Signature: 1uubapr1hph6wmh6pqkthugeqfkxzmid Received-SPF: none (zlingsmart.com>: No applicable sender policy available) receiver=imf21; identity=mailfrom; envelope-from=""; helo=out28-5.mail.aliyun.com; client-ip=115.124.28.5 X-HE-DKIM-Result: none/none X-HE-Tag: 1620898779-872898 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000007, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Fix the return value in comment of finish_mkwrite_fault(). Signed-off-by: Liu Xiang --- mm/memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/memory.c b/mm/memory.c index 730daa009..b844afded 100644 --- a/mm/memory.c +++ b/mm/memory.c @@ -3035,7 +3035,7 @@ static vm_fault_t wp_page_copy(struct vm_fault *vmf) * The function expects the page to be locked or other protection against * concurrent faults / writeback (such as DAX radix tree locks). * - * Return: %VM_FAULT_WRITE on success, %0 when PTE got changed before + * 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)