From patchwork Fri Apr 1 06:45:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yixuan Cao X-Patchwork-Id: 12797935 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id DE26AC433EF for ; Fri, 1 Apr 2022 06:46:34 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 4A84D6B0071; Fri, 1 Apr 2022 02:46:24 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 430D36B0072; Fri, 1 Apr 2022 02:46:24 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 2F8596B0073; Fri, 1 Apr 2022 02:46:24 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0113.hostedemail.com [216.40.44.113]) by kanga.kvack.org (Postfix) with ESMTP id 1827D6B0071 for ; Fri, 1 Apr 2022 02:46:24 -0400 (EDT) Received: from smtpin19.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id B5E908249980 for ; Fri, 1 Apr 2022 06:46:13 +0000 (UTC) X-FDA: 79307375826.19.745BBA0 Received: from smtpbguseast2.qq.com (smtpbguseast2.qq.com [54.204.34.130]) by imf26.hostedemail.com (Postfix) with ESMTP id 13D7B140009 for ; Fri, 1 Apr 2022 06:46:11 +0000 (UTC) X-QQ-mid: bizesmtp83t1648795561tjbq1hzl Received: from localhost.localdomain ( [202.96.137.248]) by bizesmtp.qq.com (ESMTP) with id ; Fri, 01 Apr 2022 14:45:45 +0800 (CST) X-QQ-SSF: 01400000000000D0O000B00A0000000 X-QQ-GoodBg: 2 From: Yixuan Cao To: akpm@linux-foundation.org Cc: linux-mm@kvack.org, yejiajian2018@email.szu.edu.cn, zhangyinan2019@email.szu.edu.cn, zhaochongxi2019@email.szu.edu.cn, hanshenghong2019@email.szu.edu.cn, yuhongf@szu.edu.cn, linux-kernel@vger.kernel.org, Yixuan Cao Subject: [PATCH] mm/vmalloc: fix a comment Date: Fri, 1 Apr 2022 14:45:43 +0800 Message-Id: <20220401064543.4447-1-caoyixuan2019@email.szu.edu.cn> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:email.szu.edu.cn:qybgforeign:qybgforeign3 X-QQ-Bgrelay: 1 X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: 13D7B140009 X-Rspam-User: Authentication-Results: imf26.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=email.szu.edu.cn; spf=pass (imf26.hostedemail.com: domain of caoyixuan2019@email.szu.edu.cn designates 54.204.34.130 as permitted sender) smtp.mailfrom=caoyixuan2019@email.szu.edu.cn X-Stat-Signature: ukgx8kf75z5ep6i3k9k7gz1hynjtoarz X-HE-Tag: 1648795571-366575 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: The sentence "but the mempolcy want to alloc memory by interleaving" should be rephrased with "but the mempolicy wants to alloc memory by interleaving" where "mempolicy" is a struct name. This work is coauthored by Yinan Zhang Jiajian Ye Shenghong Han Chongxi Zhao Yuhong Feng Yongqiang Liu Signed-off-by: Yixuan Cao --- mm/vmalloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/vmalloc.c b/mm/vmalloc.c index e163372d3967..d0111d1e370d 100644 --- a/mm/vmalloc.c +++ b/mm/vmalloc.c @@ -2903,7 +2903,7 @@ vm_area_alloc_pages(gfp_t gfp, int nid, /* memory allocation should consider mempolicy, we can't * wrongly use nearest node when nid == NUMA_NO_NODE, * otherwise memory may be allocated in only one node, - * but mempolcy want to alloc memory by interleaving. + * but mempolicy wants to alloc memory by interleaving. */ if (IS_ENABLED(CONFIG_NUMA) && nid == NUMA_NO_NODE) nr = alloc_pages_bulk_array_mempolicy(bulk_gfp,