Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp185825ybv; Wed, 5 Feb 2020 03:49:25 -0800 (PST) X-Google-Smtp-Source: APXvYqzs1pkUd+NmmGNTpa83YSe8PZgcmilP7NXvcMRvqjS/z8a75Cp3vC6gfE5PAuweaafdrsHV X-Received: by 2002:a9d:7e8c:: with SMTP id m12mr26254793otp.346.1580903364810; Wed, 05 Feb 2020 03:49:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580903364; cv=none; d=google.com; s=arc-20160816; b=SSezVZm7lj8uSQQJWL3EtsiKOCZEvCrImGGxlK8gX0z0zerdOztU+/1o4YfKJpEgiq QJIMSJqR6uue1iezXLnvm9fwEBJIdqHQK+y6mrxcSYHv46EMYgHihCQh/MYmZu1qMlgI PNISGcamhozr0ilidj+9jHkTN0SNmxf2SmjuWYdn+xPyAKwjcwDKkR2InSdeZ1SY9rNC Q/5w0HBxoCo1tXezMrqDmk9h+XfledpJl1Z5TkU3mdOIYTZRvjHBJlF/PDtv9B4DsVv3 4kgDEJgcawZhUzGxgnN+vZk9szFKYEdlseqLZiYLmtve19prbJs78OWt73SVOzf0tBqC 57WQ== 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:reply-to:message-id :subject:cc:to:from:date; bh=kQHaaqkb/N3QKkiNLz9DEighevfwT+QlUYeH3VHIgI4=; b=tve29f6z2UGaA6zRPOc64Ll2+RpAkNaeZT939sZhRalr2/+zEaqZ0NUsyrGuXaZuQj Y8EOWpPKwVXDYRyrs/i8+9ANyHdraWMO8K/f7lnyHoM3Z67hW70eB9ervTPXAwv9KQgT INnxqK3Um1sDp7tqilTTx9CRDtCOVtVAoN7xlguhP//HGWrk6T5B3cZhxZiM5lF2Ixh3 2QLC2r/KcqlswTknbqVLbAP7aDNEZM3F5BP+6HHGQOm8lVVtDZvzPQTJJ+SZzTve8X09 mrfX5SOYGcVBEAHoNwt1yAfkKCKZjSeNZTmv6oJjB2E4VYFlrligfnrb7pAmFQV/N3yK AFJA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v25si13292692ote.90.2020.02.05.03.49.11; Wed, 05 Feb 2020 03:49:24 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726960AbgBELsT (ORCPT + 99 others); Wed, 5 Feb 2020 06:48:19 -0500 Received: from mga12.intel.com ([192.55.52.136]:14661 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725385AbgBELsT (ORCPT ); Wed, 5 Feb 2020 06:48:19 -0500 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 05 Feb 2020 03:48:18 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,405,1574150400"; d="scan'208";a="404129293" Received: from richard.sh.intel.com (HELO localhost) ([10.239.159.54]) by orsmga005.jf.intel.com with ESMTP; 05 Feb 2020 03:48:15 -0800 Date: Wed, 5 Feb 2020 19:48:32 +0800 From: Wei Yang 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 , Oscar Salvador , Michal Hocko , Pavel Tatashin , Dan Williams , Wei Yang Subject: Re: [PATCH v6 10/10] mm/memory_hotplug: Cleanup __remove_pages() Message-ID: <20200205114832.GE24162@richard> Reply-To: Wei Yang References: <20191006085646.5768-1-david@redhat.com> <20191006085646.5768-11-david@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191006085646.5768-11-david@redhat.com> User-Agent: Mutt/1.9.4 (2018-02-28) 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:46AM +0200, David Hildenbrand wrote: >Let's drop the basically unused section stuff and simplify. > >Also, let's use a shorter variant to calculate the number of pages to >the next section boundary. > >Cc: Andrew Morton >Cc: Oscar Salvador >Cc: Michal Hocko >Cc: Pavel Tatashin >Cc: Dan Williams >Cc: Wei Yang >Signed-off-by: David Hildenbrand Finally understand the code. Reviewed-by: Wei Yang -- Wei Yang Help you, Help me