From patchwork Wed Jun 22 17:06:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miaohe Lin X-Patchwork-Id: 12891179 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 4830EC43334 for ; Wed, 22 Jun 2022 17:07:07 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 9139E8E00D4; Wed, 22 Jun 2022 13:06:54 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 84BB98E00D5; Wed, 22 Jun 2022 13:06:54 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 42D408E00D4; Wed, 22 Jun 2022 13:06:54 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 097688E00D3 for ; Wed, 22 Jun 2022 13:06:54 -0400 (EDT) Received: from smtpin03.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id DC62F61412 for ; Wed, 22 Jun 2022 17:06:53 +0000 (UTC) X-FDA: 79606501506.03.C492301 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by imf21.hostedemail.com (Postfix) with ESMTP id 3EAD51C00BF for ; Wed, 22 Jun 2022 17:06:50 +0000 (UTC) Received: from canpemm500002.china.huawei.com (unknown [172.30.72.57]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4LSqVf5hGkz1KC7p; Thu, 23 Jun 2022 01:04:26 +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:33 +0800 From: Miaohe Lin To: CC: , , , , , Subject: [PATCH 14/16] mm/huge_memory: fix comment of page_deferred_list Date: Thu, 23 Jun 2022 01:06:25 +0800 Message-ID: <20220622170627.19786-15-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-Authentication-Results: i=1; imf21.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf21.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.255 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=1655917610; 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=khev0xV1QgkFIg6EntN8L6u1WaRQxrWemSzINrKX0ik=; b=XJcinunvl2zyUGyOK4o1MI1qMGSgstrR+KKwzfIJE73hImBFTfXwriCSx30e2qRFSMn+DJ m2YnPPKQ3ron1QIA0YOypOKx4m/hBwZ9TifDY++AQLURi/x+cXKuINHm/KWzg+GqGNaF0N GZlSeOWONZ+nMa6AAkeVlVvzwK4wwmQ= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1655917610; a=rsa-sha256; cv=none; b=i2uoRbY+F+exyXhiMDPs0vCOajeDs7h31O4CCw9by0XCGzcT9otcWi3wyd/WlOhGUf63dx Z11bf6Gj6lC3+vgPvaP51q5s6bOiyeNtrGwSCeWqbaQqbmd0KiAncClxbwVMRukomZjCyz osl9gisn2jrzdEArJ0ytkmal/rawD+U= X-Rspam-User: Authentication-Results: imf21.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf21.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.255 as permitted sender) smtp.mailfrom=linmiaohe@huawei.com X-Stat-Signature: gtxctr6okyiar8bmc44gctb8hzzb6jbf X-Rspamd-Queue-Id: 3EAD51C00BF X-Rspamd-Server: rspam12 X-HE-Tag: 1655917610-839577 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 current comment is confusing because if global or memcg deferred list in the second tail page is occupied by compound_head, why we still use page[2].deferred_list here? I think it wants to say that Global or memcg deferred list in the first tail page is occupied by compound_mapcount and compound_pincount so we use the second tail page's deferred_list instead. Signed-off-by: Miaohe Lin --- include/linux/huge_mm.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/huge_mm.h b/include/linux/huge_mm.h index 12b297f9951d..2e8062b3417a 100644 --- a/include/linux/huge_mm.h +++ b/include/linux/huge_mm.h @@ -294,8 +294,8 @@ static inline bool thp_migration_supported(void) static inline struct list_head *page_deferred_list(struct page *page) { /* - * Global or memcg deferred list in the second tail pages is - * occupied by compound_head. + * Global or memcg deferred list in the first tail page is + * occupied by compound_mapcount and compound_pincount. */ return &page[2].deferred_list; }