From patchwork Tue Jun 29 02:38:47 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Morton X-Patchwork-Id: 12349083 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=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS 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 377B6C11F64 for ; Tue, 29 Jun 2021 02:38:50 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 005C961D0B for ; Tue, 29 Jun 2021 02:38:49 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 005C961D0B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 561B38D00DD; Mon, 28 Jun 2021 22:38:49 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 4EA9B8D008F; Mon, 28 Jun 2021 22:38:49 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 3B6848D00DD; Mon, 28 Jun 2021 22:38:49 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0008.hostedemail.com [216.40.44.8]) by kanga.kvack.org (Postfix) with ESMTP id 19F4F8D008F for ; Mon, 28 Jun 2021 22:38:49 -0400 (EDT) Received: from smtpin15.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 192A91F206 for ; Tue, 29 Jun 2021 02:38:49 +0000 (UTC) X-FDA: 78305203578.15.95A7A17 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf03.hostedemail.com (Postfix) with ESMTP id BFCD7C0201F9 for ; Tue, 29 Jun 2021 02:38:48 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id EB9C461D08; Tue, 29 Jun 2021 02:38:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1624934328; bh=CkOWozef2jF91yeqqpFa3EHOgqiOtWukGXtXq1y4KDY=; h=Date:From:To:Subject:In-Reply-To:From; b=ytRuykVSG7Tis1psbnqcbNvndZSOR0Xe7B7vGjq5cKZTHtGU6Qil5Nm49w1a+yg8S LYga99BqXmHB1DRV0zHe/8eIw53cZC2Y+7HNLLeNVRPh0AebWldQemrxuO9zDG1QEQ zjbDIChJk0BVSygOR+wk+r66Tvbg2yG1g873jWis= Date: Mon, 28 Jun 2021 19:38:47 -0700 From: Andrew Morton To: akpm@linux-foundation.org, linux-mm@kvack.org, liu.xiang@zlingsmart.com, mm-commits@vger.kernel.org, torvalds@linux-foundation.org Subject: [patch 104/192] mm/memory.c: fix comment of finish_mkwrite_fault() Message-ID: <20210629023847.252wPFTv5%akpm@linux-foundation.org> In-Reply-To: <20210628193256.008961950a714730751c1423@linux-foundation.org> User-Agent: s-nail v14.8.16 Authentication-Results: imf03.hostedemail.com; dkim=pass header.d=linux-foundation.org header.s=korg header.b=ytRuykVS; dmarc=none; spf=pass (imf03.hostedemail.com: domain of akpm@linux-foundation.org designates 198.145.29.99 as permitted sender) smtp.mailfrom=akpm@linux-foundation.org X-Stat-Signature: 8g74bmxe5m4kodtz3iuwguxd5jhwp4g6 X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: BFCD7C0201F9 X-HE-Tag: 1624934328-960564 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: From: Liu Xiang Subject: mm/memory.c: fix comment of finish_mkwrite_fault() Fix the return value in comment of finish_mkwrite_fault(). Link: https://lkml.kernel.org/r/20210513093931.15234-1-liu.xiang@zlingsmart.com Signed-off-by: Liu Xiang Reviewed-by: Andrew Morton Signed-off-by: Andrew Morton --- mm/memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/mm/memory.c~mm-memoryc-fix-comment-of-finish_mkwrite_fault +++ a/mm/memory.c @@ -3049,7 +3049,7 @@ oom: * 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)