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 9E39BC2D0EC for ; Sat, 11 Apr 2020 02:37:09 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 0872D2082D for ; Sat, 11 Apr 2020 02:37:08 +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="bj0Si5uN" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0872D2082D 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 797A08E0098; Fri, 10 Apr 2020 22:37:08 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 747648E0067; Fri, 10 Apr 2020 22:37:08 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 65D448E0098; Fri, 10 Apr 2020 22:37:08 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0168.hostedemail.com [216.40.44.168]) by kanga.kvack.org (Postfix) with ESMTP id 4BEA08E0067 for ; Fri, 10 Apr 2020 22:37:08 -0400 (EDT) Received: from smtpin17.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 10809A8E6 for ; Sat, 11 Apr 2020 02:37:08 +0000 (UTC) X-FDA: 76694012136.17.baby92_5b40acd52a64d X-HE-Tag: baby92_5b40acd52a64d X-Filterd-Recvd-Size: 4588 Received: from qq.com (out203-205-251-88.mail.qq.com [203.205.251.88]) by imf03.hostedemail.com (Postfix) with ESMTP for ; Sat, 11 Apr 2020 02:37:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1586572618; bh=MiumVhU1CzK4yelevOkBOgsf67LWzmVdC2f9HnIcens=; h=From:To:Cc:Subject:Date; b=bj0Si5uNt4B/BCLEusx3SVkdh9JHriW+viK/kNlMH1We+qZ5xi/DWaTZf8jRACD4/ F03Z4ZVuHZ2X5hPu5yqSIJqGzsO6+46FbH+iHhrhQgXjB2/tFYgqq86bTl+XfNPbM7 hbO28hVw2P+pnk6Ebldm82LbMwEUij5gOu+RTVl8= Received: from localhost.localdomain ([115.231.144.15]) by newxmesmtplogicsvrsza7.qq.com (NewEsmtp) with SMTP id 937318C7; Sat, 11 Apr 2020 10:36:55 +0800 X-QQ-mid: xmsmtpt1586572615tpj9r2b6a X-QQ-XMAILINFO: OScpdRdYm5OFkI5ym7J354D9BbmzDFMtiiNHGnALgRcfvCi9SpIQk5JPjix1OE wppamz9PS92VdMvXd8HfWVPWH2P9GrCAJ0K+yi50AJs4bXO3abkuoR3iu9DO38nK7fBdqJFojryr ce8huxHixymDBCbfzKWRgi9eGwsNemaQs35Cizv9kFgZnNB8IfEUQcnpb3GdbSVMC23Lu9W+SyuW gDtBCg70GQUwRBtbYsdKh004w1VIk8b/ev81GmAvEQEYX+Lby7Hj84SjEd7jXzn5UoyLQf7rQ8o9 M2qGv0lRCHWcCyOR+oKow79S0m9RWCrzj/7kY598D8s2sd/fliS7MEyLGoPtRCm2yF0SqDTl4lEj 9jF+t7cbDAnMloNMMA2FTkuhopgmhgm+i0wXBkhjaPBGqQyk9BJHQzdVDBaZHz6YnFo2xqAR4p8h silH+5ni0Pwzk930cbhr2lOr6QOJumqhxfWdAvutjCVrVM6rvFthlss2jMSZHUh2mqmlAq42SWUt mL9E/Ak7NwO4Fa1hGVfBIMNxaxnrZLLYWsxI8tjLbmItvURTJYS7KBsXHz1nqa+IzDRhygmX8Xjx 5vG40UvD6qd9shIdksnbKNBI6JZNdyr/mT2tzwxclPjkOZvU/wTLHc3kh+sPh+9s07LHXaAEnxjj mZdA== From: Ethon Paul To: akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, rcampbell@nvidia.com Cc: Ethon Paul Subject: [PATCH v2] mm: ksm: Fix a typo in comment "alreaady"->"already" Date: Sat, 11 Apr 2020 10:36:44 +0800 Message-Id: <20200411023644.15145-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/alreaady/already s/wrprotected/write protected s/undeflow/underflow Signed-off-by: Ethon Paul Reviewed-by: Ralph Campbell --- v1->v2: Added some other typos found by Ralph. --- mm/ksm.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mm/ksm.c b/mm/ksm.c index a558da9e7177..c2258c6d32d0 100644 --- a/mm/ksm.c +++ b/mm/ksm.c @@ -612,7 +612,7 @@ static struct stable_node *alloc_stable_node_chain(st= ruct stable_node *dup, * Move the old stable node to the second dimension * queued in the hlist_dup. The invariant is that all * dup stable_nodes in the chain->hlist point to pages - * that are wrprotected and have the exact same + * that are write protected and have the exact same * content. */ stable_node_chain_add_dup(dup, chain); @@ -1148,7 +1148,7 @@ static int replace_page(struct vm_area_struct *vma,= struct page *page, =20 /* * No need to check ksm_use_zero_pages here: we can only have a - * zero_page here if ksm_use_zero_pages was enabled alreaady. + * zero_page here if ksm_use_zero_pages was enabled already. */ if (!is_zero_pfn(page_to_pfn(kpage))) { get_page(kpage); @@ -1608,7 +1608,7 @@ static struct page *stable_tree_search(struct page = *page) * continue. All KSM pages belonging to the * stable_node dups in a stable_node chain * have the same content and they're - * wrprotected at all times. Any will work + * write protected at all times. Any will work * fine to continue the walk. */ tree_page =3D get_ksm_page(stable_node_any, @@ -1843,7 +1843,7 @@ static struct stable_node *stable_tree_insert(struc= t page *kpage) * continue. All KSM pages belonging to the * stable_node dups in a stable_node chain * have the same content and they're - * wrprotected at all times. Any will work + * write protected at all times. Any will work * fine to continue the walk. */ tree_page =3D get_ksm_page(stable_node_any, @@ -2001,7 +2001,7 @@ static void stable_tree_append(struct rmap_item *rm= ap_item, * duplicate. page_migration could break later if rmap breaks, * so we can as well crash here. We really need to check for * rmap_hlist_len =3D=3D STABLE_NODE_CHAIN, but we can as well check - * for other negative values as an undeflow if detected here + * for other negative values as an underflow if detected here * for the first time (and not when decreasing rmap_hlist_len) * would be sign of memory corruption in the stable_node. */ --=20 2.24.1 (Apple Git-126)