From patchwork Sat Apr 11 06:28:59 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ethon Paul X-Patchwork-Id: 11483965 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C1852112C for ; Sat, 11 Apr 2020 06:29:39 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id DA01E212CC for ; Sat, 11 Apr 2020 06:29:36 +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="WajrsXJ7" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DA01E212CC 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 ED7E58E000C; Sat, 11 Apr 2020 02:29:35 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id E88838E0009; Sat, 11 Apr 2020 02:29:35 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id DC45F8E000C; Sat, 11 Apr 2020 02:29:35 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0049.hostedemail.com [216.40.44.49]) by kanga.kvack.org (Postfix) with ESMTP id C25E28E0009 for ; Sat, 11 Apr 2020 02:29:35 -0400 (EDT) Received: from smtpin12.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 81339A8CE for ; Sat, 11 Apr 2020 06:29:35 +0000 (UTC) X-FDA: 76694597910.12.list15_5352247d93545 X-Spam-Summary: 2,0,0,3fe00076b1779146,d41d8cd98f00b204,ethp@qq.com,,RULES_HIT:41:355:379:541:800:960:973:988:989:1260:1311:1314:1345:1437:1515:1534:1541:1711:1730:1747:1777:1792:2393:2559:2562:3138:3139:3140:3141:3142:3353:3865:3867:3868:3870:3871:3872:5007:6261:6653:7903:8660:10004:11026:11658:11914:12043:12048:12296:12297:12438:12555:12895:13069:13148:13161:13229:13230:13311:13357:13894:14096:14181:14384:14394:14721:21080:21627:21795:21990:30012:30051:30054:30065:30070,0,RBL:203.205.221.233:@qq.com:.lbl8.mailshell.net-64.100.201.100 62.18.107.100,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fp,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:19,LUA_SUMMARY:none X-HE-Tag: list15_5352247d93545 X-Filterd-Recvd-Size: 3351 Received: from qq.com (out203-205-221-233.mail.qq.com [203.205.221.233]) by imf18.hostedemail.com (Postfix) with ESMTP for ; Sat, 11 Apr 2020 06:29:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1586586553; bh=GA7kaBfXqYp0yVn3K1GtwVK8Q8nwTRKWZUhk5/DqAyE=; h=From:To:Cc:Subject:Date; b=WajrsXJ7L02nSvS7mN/I9vGtNf4Ce037EcpScriEXYf5e7UaF0LAsv1xhMoEWmIVt EmWquOfW6ywiMzEVn4FfZEjCRGlT5ySW+VMVZFjRSL9jxU6d87v2/zQyvpAxCiTSxn SCrEMtwHAM+TkvzCo7j6Jp+1t9dAqYq/x6VqF28I= Received: from localhost.localdomain ([115.231.144.15]) by newxmesmtplogicsvrszc7.qq.com (NewEsmtp) with SMTP id 74A8BAB6; Sat, 11 Apr 2020 14:29:10 +0800 X-QQ-mid: xmsmtpt1586586550tw38n6hri X-QQ-XMAILINFO: MOA6OB0Hn5KCviBeuZlurVzuCqcFQ+DkSa++aIrY/ASlUW6JObyG0W5LyKiZqG 1p3cz+N8LetMHiLCAmInby152/piTmEAv0axBqkqiT2ZzsRP9J+6GHFpvMi03S02bPzORQoi4TAF NeUFsK+R2OhgWYxSbEO7KhjjKQA0QJ7hovDu+1VMavNtYWcxDsqHQ3BH+j7vSNH5qcYtr2yPlDT3 wP8JWNkd5zmgmVPGKHJog78KkT3MdiMgCAZVPf8pGSgvjAWJgSpEEV32nImj2kJeZdYapSGbYH6x MyOwFq317SazZWf8lYt83HUqRSpquCEUc5BFOHDef4RCbWJIsgqDvmpyDMDK/RYR7hOD4V/f/SQV /9OE98rd9HrjTQA5Zx517SjzXnp1Cbx4ww2PYKhsJks4ycIYzUXq4dcCbEQkMnaaNHKPdQcqQmcx dINUCpcgLuWEBRK4WIChb6vVT9hnJxhYUzq6WHlA4zvy0SnFklyWBqcIUysLskzLPFnEzuzXfYnQ JIqDmvBn1yZtNWZ2Moclt3wuKAtP3jX+J+H+Hw+FxOx/k2MakQoRsMg/7bmTxkqpdpoTBYYISVOx x3jpAFISbqfoPUtKBq3kQedAXdIoe4VMYxgCdLHaL/wCOEAe4cAXUikIGp 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] mm/frontswap: Fix some typos in frontswap.c Date: Sat, 11 Apr 2020 14:28:59 +0800 Message-Id: <20200411062859.15618-1-ethp@qq.com> X-Mailer: git-send-email 2.24.1 (Apple Git-126) MIME-Version: 1.0 X-Bogosity: Ham, tests=bogofilter, spamicity=0.012026, 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 it. s/Fortunatly/Fortunately s/taked/taken s/necessory/necessary s/shink/shrink Signed-off-by: Ethon Paul --- 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 right 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 we 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 total, unsigned long *unused, } /* - * 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,