From patchwork Mon Jul 4 13:21:59 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miaohe Lin X-Patchwork-Id: 12905370 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 621A8C43334 for ; Mon, 4 Jul 2022 13:22:42 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 0A8516B008A; Mon, 4 Jul 2022 09:22:27 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id F20066B008C; Mon, 4 Jul 2022 09:22:26 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C60DA6B0092; Mon, 4 Jul 2022 09:22:26 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 97A9F6B008A for ; Mon, 4 Jul 2022 09:22:26 -0400 (EDT) Received: from smtpin13.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 7D03E33D1E for ; Mon, 4 Jul 2022 13:22:26 +0000 (UTC) X-FDA: 79649481492.13.7793AEA Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by imf18.hostedemail.com (Postfix) with ESMTP id 602D21C0050 for ; Mon, 4 Jul 2022 13:22:25 +0000 (UTC) Received: from canpemm500002.china.huawei.com (unknown [172.30.72.55]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4Lc5z85BJxzkX90; Mon, 4 Jul 2022 21:20:52 +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; Mon, 4 Jul 2022 21:22:17 +0800 From: Miaohe Lin To: CC: , , , , , , Subject: [PATCH v3 14/16] mm/huge_memory: correct comment of prep_transhuge_page Date: Mon, 4 Jul 2022 21:21:59 +0800 Message-ID: <20220704132201.14611-15-linmiaohe@huawei.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20220704132201.14611-1-linmiaohe@huawei.com> References: <20220704132201.14611-1-linmiaohe@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.175.124.27] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To canpemm500002.china.huawei.com (7.192.104.244) X-CFilter-Loop: Reflected ARC-Authentication-Results: i=1; imf18.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf18.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.187 as permitted sender) smtp.mailfrom=linmiaohe@huawei.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1656940946; 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=XOvY20vnH3kVXLyUNdopTKwr0oo/0GWEtMm7ZZ8rYm0=; b=0cmeiayqlV3n5+Jma7Wx2oXOboU96Rp/PfDxcnQjO29FTJxs+X6HcvfINHF+GnmM2xuOCr w1XRBQ1+1iiougSE+z67zdJjTreGlUTCxq/ckl9IX12zdKzbI21vlLO6vLQj11cnvC2U5s xszLz2iyW4waueYWQfXXvkown+oUkjA= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1656940946; a=rsa-sha256; cv=none; b=65dInEeLGRqxuZhuC7iwyTzhuCALCZ9SxD4i4pf/rPA5pQgLwVRzDejpxhds48Q9PQfokU ku+LPhO1MKoPWDGElYZPZqjeNuduIi9J/HMIjz7/ZOY7PexBN4bkDJagwc4NAEaj28RNLv kmb8u9HGCHT+7BkztqhVlNRSK29Z8EU= X-Stat-Signature: pkaqb5zuoeqzcsqo68y4j7npyrdxhir3 X-Rspamd-Queue-Id: 602D21C0050 Authentication-Results: imf18.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf18.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.187 as permitted sender) smtp.mailfrom=linmiaohe@huawei.com X-Rspamd-Server: rspam03 X-Rspam-User: X-HE-Tag: 1656940945-100651 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 77be7dec1420..36f3fc2e7306 100644 --- a/mm/huge_memory.c +++ b/mm/huge_memory.c @@ -682,7 +682,7 @@ static inline void split_queue_unlock_irqrestore(struct deferred_split *queue, 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 */