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 AD0E6ECAAD8 for ; Fri, 16 Sep 2022 07:24:02 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D63008000C; Fri, 16 Sep 2022 03:23:48 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id C9C4E80010; Fri, 16 Sep 2022 03:23:48 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B43A28000C; Fri, 16 Sep 2022 03:23:48 -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 931C780010 for ; Fri, 16 Sep 2022 03:23:48 -0400 (EDT) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 669021C04E1 for ; Fri, 16 Sep 2022 07:23:48 +0000 (UTC) X-FDA: 79917108936.05.3E2754A Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by imf06.hostedemail.com (Postfix) with ESMTP id D2949180097 for ; Fri, 16 Sep 2022 07:23:47 +0000 (UTC) Received: from canpemm500002.china.huawei.com (unknown [172.30.72.53]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4MTQSY1KpqzmVRN; Fri, 16 Sep 2022 15:19:57 +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.31; Fri, 16 Sep 2022 15:23:43 +0800 From: Miaohe Lin To: , , , CC: , , , Subject: [PATCH v2 16/16] mm/page_alloc: fix obsolete comment in deferred_pfn_valid() Date: Fri, 16 Sep 2022 15:22:57 +0800 Message-ID: <20220916072257.9639-17-linmiaohe@huawei.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20220916072257.9639-1-linmiaohe@huawei.com> References: <20220916072257.9639-1-linmiaohe@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.175.124.27] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To canpemm500002.china.huawei.com (7.192.104.244) X-CFilter-Loop: Reflected ARC-Authentication-Results: i=1; imf06.hostedemail.com; dkim=none; spf=pass (imf06.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-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1663313028; a=rsa-sha256; cv=none; b=2U4g9SobWfDgeNaF/Kf/8h4PZN3MoQVo3z86DrJAW+jkUM28DGiAtCFkM3mhWWxBnFXdsn zXW8iQFNfbNBWi97losyAvI6uNXnugmYc+HcRUvQchg4aCJBO58KbdSl03U0lVoBsStWR5 FnsHvRxEFHCJjkRZMJ8hSdcm8Nr4jok= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1663313028; 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=v6Xz9kNS+WFcTfnJhneyxsRLUQ4Ow+Q33pLtV4SNako=; b=S4ZP01+w55fS51SI0sQKEoQWNFZt0FcVIUzDGPmTkXEdDaBPYVOchkvRpqcr0ypjtVTFeK 1a3Xq9ml79HR9Huw5ZAxDh77u2lTGvwcI6149nJwUgWkxJySkwjJmYTG/S6ERi1tAwrc0u mThxhDD6fCGw01neqBmVNnEXLaYXqHo= X-Rspam-User: X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: D2949180097 Authentication-Results: imf06.hostedemail.com; dkim=none; spf=pass (imf06.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-Stat-Signature: rh8zweeoeg1twsskr6faikpecgpw3yn9 X-HE-Tag: 1663313027-695573 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: There are no architectures that can have holes in the memory map within a pageblock since commit 859a85ddf90e ("mm: remove pfn_valid_within() and CONFIG_HOLES_IN_ZONE"). Update the corresponding comment. Signed-off-by: Miaohe Lin Reviewed-by: David Hildenbrand Reviewed-by: Anshuman Khandual Reviewed-by: Oscar Salvador --- mm/page_alloc.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 3d2ad5c197d5..d7b20bf09c1c 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -1929,11 +1929,7 @@ static inline void __init pgdat_init_report_one_done(void) /* * Returns true if page needs to be initialized or freed to buddy allocator. * - * First we check if pfn is valid on architectures where it is possible to have - * holes within pageblock_nr_pages. On systems where it is not possible, this - * function is optimized out. - * - * Then, we check if a current large page is valid by only checking the validity + * We check if a current large page is valid by only checking the validity * of the head pfn. */ static inline bool __init deferred_pfn_valid(unsigned long pfn) -- 2.23.0