From mboxrd@z Thu Jan 1 00:00:00 1970 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 AF18DECAAD3 for ; Thu, 15 Sep 2022 07:50:12 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 24D4F6B0074; Thu, 15 Sep 2022 03:50:12 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 1FDFD8D0003; Thu, 15 Sep 2022 03:50:12 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 0C5C88D0002; Thu, 15 Sep 2022 03:50:12 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id ED8CC6B0074 for ; Thu, 15 Sep 2022 03:50:11 -0400 (EDT) Received: from smtpin06.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id C034FA0C24 for ; Thu, 15 Sep 2022 07:50:11 +0000 (UTC) X-FDA: 79913546622.06.BC9DA80 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by imf03.hostedemail.com (Postfix) with ESMTP id 6B07D2009C for ; Thu, 15 Sep 2022 07:50:11 +0000 (UTC) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 5F2155CD5C; Thu, 15 Sep 2022 07:50:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1663228210; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=QPMXf8st9QQNsPfGUEwhIqebIUz53LTCe5E9TbcfRTQ=; b=ZYr9qNQxzsklsYYl7coCcq7ymchiK/WNIvqJ1uPvZ1GUf5Nc+dL8/qlFce+fDiEPs+fMdx f9jVAN9AmnT4hsQugo47Ygvp7bKi4NoALlS8WWmF11Z0Wv4PB3NnWjJ35l6B6l4X5kfhYF 0jnq1TXoBAJJGRoU4hNPfUe212OMkjk= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1663228210; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=QPMXf8st9QQNsPfGUEwhIqebIUz53LTCe5E9TbcfRTQ=; b=vDypP2EUUxmGsWvZyAHWsypdrDnb1g86jOE3/74otDbyUGZhUjq4yLAb0b4lfG0IsJqfoW dAmPJ7IgDrI6dEBg== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 0A349133A7; Thu, 15 Sep 2022 07:50:09 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 6sZSOzHZImNeawAAMHmgww (envelope-from ); Thu, 15 Sep 2022 07:50:09 +0000 Date: Thu, 15 Sep 2022 09:50:08 +0200 From: Oscar Salvador To: Miaohe Lin Cc: akpm@linux-foundation.org, david@redhat.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 16/16] mm/page_alloc: fix obsolete comment in deferred_pfn_valid() Message-ID: References: <20220909092451.24883-1-linmiaohe@huawei.com> <20220909092451.24883-17-linmiaohe@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220909092451.24883-17-linmiaohe@huawei.com> ARC-Authentication-Results: i=1; imf03.hostedemail.com; dkim=pass header.d=suse.de header.s=susede2_rsa header.b=ZYr9qNQx; dkim=pass header.d=suse.de header.s=susede2_ed25519 header.b=vDypP2EU; dmarc=pass (policy=none) header.from=suse.de; spf=pass (imf03.hostedemail.com: domain of osalvador@suse.de designates 195.135.220.29 as permitted sender) smtp.mailfrom=osalvador@suse.de ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1663228211; a=rsa-sha256; cv=none; b=GMFPjW9XUoHXZE3P3retqBx5RFO929YuzsRfxMSdoC8THZBpcB/0kLWXSrBbOqy2nd12lQ +3SvItlx+dhmjc7H+DJvCWqD8INtYox3aAxWChbLDzZc+FanbbJbobABQGg7BULyrCzL6L 2nNoGXP0wQHQvrG2uFB049RP/cPmdy4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1663228211; 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: in-reply-to:in-reply-to:references:references:dkim-signature; bh=QPMXf8st9QQNsPfGUEwhIqebIUz53LTCe5E9TbcfRTQ=; b=eESpaQLPV7WomfYYydQXVZlPgalE9ENl+pyMePVDKAn+EZ/I9KXCD8uCqf3VF9zFBKpV94 TfRr5DA/sEYI844vKYlybmkXB4s6RNIM6pPSMLkNxO79g8hgsx//44EF3dmeuXYvrfLopl OEtZg2xCXmZlfGdaYMNV2FTD57vQ7nM= Authentication-Results: imf03.hostedemail.com; dkim=pass header.d=suse.de header.s=susede2_rsa header.b=ZYr9qNQx; dkim=pass header.d=suse.de header.s=susede2_ed25519 header.b=vDypP2EU; dmarc=pass (policy=none) header.from=suse.de; spf=pass (imf03.hostedemail.com: domain of osalvador@suse.de designates 195.135.220.29 as permitted sender) smtp.mailfrom=osalvador@suse.de X-Rspam-User: X-Rspamd-Queue-Id: 6B07D2009C X-Rspamd-Server: rspam01 X-Stat-Signature: e1auxrbyppxnqwx48xmxctbjspby53mm X-HE-Tag: 1663228211-263957 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: On Fri, Sep 09, 2022 at 05:24:51PM +0800, Miaohe Lin wrote: > 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: 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 262e8972e019..4cc0232020d2 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 > -- Oscar Salvador SUSE Labs