Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4750255ybl; Tue, 4 Feb 2020 01:08:37 -0800 (PST) X-Google-Smtp-Source: APXvYqxDiYN/PloxZ+UXtQAuqjge1O/Qr/Ttyp9dGM2EwUFYF5ocF2hrXbJhyNjtlnWFCoJk5tju X-Received: by 2002:aca:af50:: with SMTP id y77mr2826626oie.8.1580807317386; Tue, 04 Feb 2020 01:08:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580807317; cv=none; d=google.com; s=arc-20160816; b=e1Zr8qhHwvzX/z1R4BEOlMZUMi6XeyBqhmrFCYEeD8/92W37Oe0c+/ZqFo0Zb1Al3z S4HVp8Q++y90BOnHZbCUfWK/gWUrpGz+fUah9Y2NC1Yp7lJYYaLtVX3YOUni8eaC8nwF YDC95F9U4VUAgKIlkdBFyKU2AVelS6TbJGxfKAafmy+vDigZsL+PO9D5fwBm9ctXRVtv sLiKIWBF25XIe3TU9peGd8LQXFxQ2a+13eOObslv29jMchDI85OczXlhiN43jgi40yps fQ+CARQsFaFscjEwSKUvSHEcHZq0PprkKSYIjSUA5IIPXKpq1jI8D7ml1Pgx/i+DvyqA 98+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=4eotJunSscEc5zhuevA348s+gAsxRz1CEr7EHelaQc4=; b=tLGvR/UC3zMZ0megOIud/np0DPvEaaQoCOtF9PinObOcwFzLK7nKR7dwJMqJWSqoaL q8su8zYHW07nYz6ACWpGk9cbMar/SrREJ7NCyYHh0+jbH5+WChVOzz/Bk0R0yxo+7AYk jnvscptByfCNj7Ql08N+UxXbrlVuTjL9MLVVORRhx5SIMYZyMP/2A+P8VyOKYdHukneY 59vmBp+SDo568mzxNWfRiEKabm4NYWkh4ql7ywDsjOTqrS43S/RtY+Er6idSBokjj+1o n9Vc12OhIBUDQNgR8WoZA1+irQVyiaynKLpidUqyI6y2VBcC7ZhINbQwIS6R2g2RhdlN Y/Hw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l9si11157538oti.229.2020.02.04.01.08.24; Tue, 04 Feb 2020 01:08:37 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726832AbgBDJG2 (ORCPT + 99 others); Tue, 4 Feb 2020 04:06:28 -0500 Received: from mx2.suse.de ([195.135.220.15]:43900 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726196AbgBDJG2 (ORCPT ); Tue, 4 Feb 2020 04:06:28 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 9214DB1E4; Tue, 4 Feb 2020 09:06:25 +0000 (UTC) Date: Tue, 4 Feb 2020 10:06:22 +0100 From: Oscar Salvador To: David Hildenbrand Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-arm-kernel@lists.infradead.org, linux-ia64@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, x86@kernel.org, Andrew Morton , Michal Hocko , Pavel Tatashin , Dan Williams , Wei Yang Subject: Re: [PATCH v6 07/10] mm/memory_hotplug: We always have a zone in find_(smallest|biggest)_section_pfn Message-ID: <20200204090622.GB6494@linux> References: <20191006085646.5768-1-david@redhat.com> <20191006085646.5768-8-david@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191006085646.5768-8-david@redhat.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Oct 06, 2019 at 10:56:43AM +0200, David Hildenbrand wrote: > With shrink_pgdat_span() out of the way, we now always have a valid > zone. > > Cc: Andrew Morton > Cc: Oscar Salvador > Cc: David Hildenbrand > Cc: Michal Hocko > Cc: Pavel Tatashin > Cc: Dan Williams > Cc: Wei Yang > Signed-off-by: David Hildenbrand Reviewed-by: Oscar Salvador > --- > mm/memory_hotplug.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c > index bf5173e7913d..f294918f7211 100644 > --- a/mm/memory_hotplug.c > +++ b/mm/memory_hotplug.c > @@ -337,7 +337,7 @@ static unsigned long find_smallest_section_pfn(int nid, struct zone *zone, > if (unlikely(pfn_to_nid(start_pfn) != nid)) > continue; > > - if (zone && zone != page_zone(pfn_to_page(start_pfn))) > + if (zone != page_zone(pfn_to_page(start_pfn))) > continue; > > return start_pfn; > @@ -362,7 +362,7 @@ static unsigned long find_biggest_section_pfn(int nid, struct zone *zone, > if (unlikely(pfn_to_nid(pfn) != nid)) > continue; > > - if (zone && zone != page_zone(pfn_to_page(pfn))) > + if (zone != page_zone(pfn_to_page(pfn))) > continue; > > return pfn; > -- > 2.21.0 > -- Oscar Salvador SUSE L3