From mboxrd@z Thu Jan 1 00:00:00 1970 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=-9.3 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham 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 0C006C2BA2B for ; Sat, 11 Apr 2020 06:40:38 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 063302078E for ; Sat, 11 Apr 2020 06:40:35 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=qq.com header.i=@qq.com header.b="ibbQdlvp" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 063302078E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=qq.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 88E7F8E0067; Sat, 11 Apr 2020 02:40:35 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 83EF28E0009; Sat, 11 Apr 2020 02:40:35 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 754F08E0067; Sat, 11 Apr 2020 02:40:35 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0246.hostedemail.com [216.40.44.246]) by kanga.kvack.org (Postfix) with ESMTP id 5A3B78E0009 for ; Sat, 11 Apr 2020 02:40:35 -0400 (EDT) Received: from smtpin01.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 0E74EAF67 for ; Sat, 11 Apr 2020 06:40:35 +0000 (UTC) X-FDA: 76694625630.01.drum59_2210ff991d125 X-HE-Tag: drum59_2210ff991d125 X-Filterd-Recvd-Size: 3401 Received: from qq.com (out203-205-251-80.mail.qq.com [203.205.251.80]) by imf16.hostedemail.com (Postfix) with ESMTP for ; Sat, 11 Apr 2020 06:40:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1586587222; bh=/MX5GfBcDoaD7bXEyrxhPzBzxfZrIGY/WrZX7/PhF1Q=; h=From:To:Cc:Subject:Date; b=ibbQdlvp2cfw26vL5J5KKQTMJBZbyhXXqAk8Fz/4yBO94aqr83Yy75rWidFHC2Uy+ cb6NIfJxPZUbm8Pk0VBKDgeoa6GAAMmuBxLRTGS7QAiDRTOxwVo7fNqoFjycypwn+z HXN+4566CvOTI4b7Ku9vxPM1fKOC5QSEtzPNZI28= Received: from localhost.localdomain ([115.231.144.15]) by newxmesmtplogicsvrszb5.qq.com (NewEsmtp) with SMTP id A148AE13; Sat, 11 Apr 2020 14:40:20 +0800 X-QQ-mid: xmsmtpt1586587220tmq1ebz5n X-QQ-XMAILINFO: Mx9EL5h4no4jVe6xdwT7lJdy6jeNwTQ9a/xS8PtZVGudOgT2FBuT16C6ND33pp 9beuGxDc9tU0w3rxVbWy/VTCm442vq17qUlUS7UcxlcG/Y+mdjiLWKcW7T6AMvg9cT9QbOTVz/v4 ykmxzpZym0jAsBN4wPypqi1w8htsqnqhIU+TkUBnmwfiCYlCLs1euWap2B0UYpi7851BSihl92/9 crhKep2YV6jgHX4KMIGDCPEHJuaSuiEkY+FHRBelPNU2mNz4aoFri6jv1IZ8URsHLq6Te5Nr7ByV jzwtM2+jAG0IUYJQC/LXiiVfR6DwLn85wK8qy3RHaYNNuz4M1SXf5/XUYV0yONL8cMykKo8X05cZ dYGnXrGk7Czso5HYGoAD6kV7RXhnp6AM233aw5nUsMC/+Fo4r3sTLV6MO4mu441h7IiLVZRJEpeY BG0LtTTNHRHCuV9e/X/LumwHj+v78es5oF/aWfumDv5QBIZfySyn7TsPvq3DK5gfJCtWtzPfFND3 77jnQDZDW80GLsApb+mh0mTtsoOnIzK4WkaAsoVW6sjq9j78TU8cmw/yTY9BnAp54U9qoUPzGUmL mKmcKXmyZ34I+CS1zWj9ObE6HhY4q7qW6z+S2H3vw7Pt6WU22IMoeeSLXS From: Ethon Paul To: konrad.wilk@oracle.com, akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: Ethon Paul Subject: [PATCH v2] mm/frontswap: Fix some typos in frontswap.c Date: Sat, 11 Apr 2020 14:40:09 +0800 Message-Id: <20200411064009.15727-1-ethp@qq.com> X-Mailer: git-send-email 2.24.1 (Apple Git-126) MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Bogosity: Ham, tests=bogofilter, spamicity=0.000001, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: There are some typos in comment, fix them. s/Fortunatly/Fortunately s/taked/taken s/necessory/necessary s/shink/shrink Signed-off-by: Ethon Paul --- v1->v2: Fix type in my commit message. --- mm/frontswap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mm/frontswap.c b/mm/frontswap.c index 60bb20e8a951..bfa3a339253e 100644 --- a/mm/frontswap.c +++ b/mm/frontswap.c @@ -87,7 +87,7 @@ static inline void inc_frontswap_invalidates(void) { } * * This would not guards us against the user deciding to call swapoff ri= ght as * we are calling the backend to initialize (so swapon is in action). - * Fortunatly for us, the swapon_mutex has been taked by the callee so w= e are + * Fortunately for us, the swapon_mutex has been taken by the callee so = we are * OK. The other scenario where calls to frontswap_store (called via * swap_writepage) is racing with frontswap_invalidate_area (called via * swapoff) is again guarded by the swap subsystem. @@ -413,8 +413,8 @@ static int __frontswap_unuse_pages(unsigned long tota= l, unsigned long *unused, } =20 /* - * Used to check if it's necessory and feasible to unuse pages. - * Return 1 when nothing to do, 0 when need to shink pages, + * Used to check if it's necessary and feasible to unuse pages. + * Return 1 when nothing to do, 0 when need to shrink pages, * error code when there is an error. */ static int __frontswap_shrink(unsigned long target_pages, --=20 2.24.1 (Apple Git-126)