From patchwork Wed Jun 22 17:06:26 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miaohe Lin X-Patchwork-Id: 12891184 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 D0CB7CCA481 for ; Wed, 22 Jun 2022 17:07:13 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 7642C8E00D9; Wed, 22 Jun 2022 13:06:59 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 713028E00D8; Wed, 22 Jun 2022 13:06:59 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 564E48E00D9; Wed, 22 Jun 2022 13:06:59 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 3C5198E00D8 for ; Wed, 22 Jun 2022 13:06:59 -0400 (EDT) Received: from smtpin25.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 1D983354BB for ; Wed, 22 Jun 2022 17:06:59 +0000 (UTC) X-FDA: 79606501758.25.6F377FE Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by imf15.hostedemail.com (Postfix) with ESMTP id C1451A00A7 for ; Wed, 22 Jun 2022 17:06:57 +0000 (UTC) Received: from canpemm500002.china.huawei.com (unknown [172.30.72.56]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4LSqTB1y7BzShBf; Thu, 23 Jun 2022 01:03:10 +0800 (CST) Received: from huawei.com (10.175.124.27) by canpemm500002.china.huawei.com (7.192.104.244) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Thu, 23 Jun 2022 01:06:34 +0800 From: Miaohe Lin To: CC: , , , , , Subject: [PATCH 15/16] mm/huge_memory: correct comment of prep_transhuge_page Date: Thu, 23 Jun 2022 01:06:26 +0800 Message-ID: <20220622170627.19786-16-linmiaohe@huawei.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20220622170627.19786-1-linmiaohe@huawei.com> References: <20220622170627.19786-1-linmiaohe@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.175.124.27] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To canpemm500002.china.huawei.com (7.192.104.244) X-CFilter-Loop: Reflected ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1655917618; a=rsa-sha256; cv=none; b=7rga9m0nRRMku1TV4Em2FUXBsMzRgUSL19tuQP1xQN+a+5GetwbS0T3U+YOjMVhZnBBgOm /bMHzDMDtbKHaWbhu0A6hrIVjVH1WNQl/lFOQPW06/eCNfa65xLkYdverRRP16Jki32vrR LSEPYqY+yMfcpK4CfKWzOS9XPc5iJn4= ARC-Authentication-Results: i=1; imf15.hostedemail.com; dkim=none; spf=pass (imf15.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.188 as permitted sender) smtp.mailfrom=linmiaohe@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1655917618; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=A2hrabp9qAjagRhWYPYfjwynFtoy3tAsz8spAaraMPY=; b=BdhX2xl+fQPbDNXpCxeiBGeAbxp0naZMhvSezDxOike4N4boi28icSPEBlasKSuxY4d/M9 WVE06efSvS81r69t3vhTApr7CUpecJC2iEEaZxHXk2sPk+da8RgZHy3UKvubhHqCXTjVh/ XacKqE0yhyvHY7bynKDlfOsfGJXr+Kc= Authentication-Results: imf15.hostedemail.com; dkim=none; spf=pass (imf15.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.188 as permitted sender) smtp.mailfrom=linmiaohe@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com X-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: C1451A00A7 X-Stat-Signature: oytm1huwa1e84fzmt6w7nzf91m1aiwja X-Rspam-User: X-HE-Tag: 1655917617-209996 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: We use page->mapping and page->index, instead of page->indexlru in second tail page as list_head. Correct it. Signed-off-by: Miaohe Lin Reviewed-by: Muchun Song --- mm/huge_memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/huge_memory.c b/mm/huge_memory.c index de8155ff584c..8bd937cc1f74 100644 --- a/mm/huge_memory.c +++ b/mm/huge_memory.c @@ -576,7 +576,7 @@ static inline struct deferred_split *get_deferred_split_queue(struct page *page) void prep_transhuge_page(struct page *page) { /* - * we use page->mapping and page->indexlru in second tail page + * we use page->mapping and page->index in second tail page * as list_head: assuming THP order >= 2 */