Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp4498336pxb; Tue, 31 Aug 2021 06:43:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw5KhmlB+6Yc300OGSmGEzzC6oVQWbfgbvSffoPFo9ueLQJe03tZGILjmbgsxfmQP5U+JdT X-Received: by 2002:a17:906:3fc1:: with SMTP id k1mr30914508ejj.44.1630417381964; Tue, 31 Aug 2021 06:43:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630417381; cv=none; d=google.com; s=arc-20160816; b=P7dtWApccrFzXLA6gcwU6y3aGm1z1sxF8yryMzlyCWB9LhEiorBdL2PeCNygpExssv v7TjErAYUqcR89t0IARcBA7Tr9LcYKG9FNWnLzBtq6kxN5B8tp1Gdd6xqhJnnzGdbap/ BXSG4FkRg/Gfwdnqe0YBIVTJVy5yl4N0PV6Vcb1b9hD9LuhX9aLWj1NYwWBFZ2aQ1CtF hAJcgAF3g7/cUjT4vW6Q2S35uxHjTqskDKD6CIF5DDeWZnmlKdnX+3yn/SkSotMbTmFc 7+eVt0hWT0A1+6xTZ4p7jug56dUFOUktLH9fS/mayab12JRkZtc7wUpghIE9Qccg+e3i lOyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=bHwO24kkKtkWT92V1EppXgydsGoDXSWDxkVpAaVGyfA=; b=0SoTnPpJFtQKi8oqmJ6rCDcLQJhfnsACoJtKtSG20+LO13O4pUjWJuaGytYAopwPln r1NnbianLiClH4tb6d09Gd0WrtjhU+yDCQiRjkY34umubPxT262sYYr1EgXA1BzgYy4Q 5FvjDgoiN08irhQ+H6wOgBFNh5LEZhRvaiz7jSx6jnhrYlkebyanyYmbP/iAqfvza+00 hXco7JozcyyJxY5nt4z7GPwM1lFvQ0RHC+Z5v0qbwu+il16Izm79jg4A5wsnRJp0QmtS e1hMpLrtLispsDQ1wp2Ug+N9m8TX+ImWhh0pooJsbVfOIuADZS+n9Zau144e5SRPEvSi UoYQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id fl21si1969173ejc.273.2021.08.31.06.42.27; Tue, 31 Aug 2021 06:43:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236476AbhHaNkp (ORCPT + 99 others); Tue, 31 Aug 2021 09:40:45 -0400 Received: from outbound-smtp17.blacknight.com ([46.22.139.234]:56471 "EHLO outbound-smtp17.blacknight.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230385AbhHaNko (ORCPT ); Tue, 31 Aug 2021 09:40:44 -0400 Received: from mail.blacknight.com (pemlinmail03.blacknight.ie [81.17.254.16]) by outbound-smtp17.blacknight.com (Postfix) with ESMTPS id 66C521C3BCB for ; Tue, 31 Aug 2021 14:39:48 +0100 (IST) Received: (qmail 29865 invoked from network); 31 Aug 2021 13:39:48 -0000 Received: from unknown (HELO techsingularity.net) (mgorman@techsingularity.net@[84.203.17.29]) by 81.17.254.9 with ESMTPSA (AES256-SHA encrypted, authenticated); 31 Aug 2021 13:39:48 -0000 Date: Tue, 31 Aug 2021 14:39:47 +0100 From: Mel Gorman To: Miaohe Lin Cc: akpm@linux-foundation.org, vbabka@suse.cz, sfr@canb.auug.org.au, peterz@infradead.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 4/6] mm/page_alloc.c: use helper function zone_spans_pfn() Message-ID: <20210831133946.GF4128@techsingularity.net> References: <20210830141051.64090-1-linmiaohe@huawei.com> <20210830141051.64090-5-linmiaohe@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <20210830141051.64090-5-linmiaohe@huawei.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 30, 2021 at 10:10:49PM +0800, Miaohe Lin wrote: > Use helper function zone_spans_pfn() to check whether pfn is within a > zone to simplify the code slightly. > > Signed-off-by: Miaohe Lin Acked-by: Mel Gorman -- Mel Gorman SUSE Labs