Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7270828ybi; Wed, 5 Jun 2019 14:24:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqwOhXFDwteXSQzjPqDlS/zPiIw5GSFqty97UafCxvtXrruZLhYEVMQzEpPNv6jnadQ06LUB X-Received: by 2002:aa7:8294:: with SMTP id s20mr40800753pfm.75.1559769847647; Wed, 05 Jun 2019 14:24:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559769847; cv=none; d=google.com; s=arc-20160816; b=C7qSqp/V8CjaCWlgY3dJVEmxbjotgf6t88vt9bgOsGc4P4ms9VyloQtPeyS5lCzTeG Pc9Cv81m8bWSEDc69+hMCswSLyx14/gNvyvEywTb0W6Q0CshMIZc04iVDUZRFaIOpxCZ cDvCDasovFkK3BBBPvehdan3P/vPGntFNALUFHZIcHNXohZHdb/hIh0gLT9v0gEa+cAl zS//KkOWNh+1MAPFzbIZhnVO1PduZxWfrK9GKu1+20CX5fXDv38SI7t/dTGAU+F4T+gS vuKcTiDZBizSaT0/yzXCtXI3e9pheZyozOPCMFffqwV2W+Zn2FtVd9t1yLNWhRlQSFB/ /2vg== 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:dkim-signature; bh=jmqIL302FliKztrku23iEbel/vN8Om9KZr4KoJVUQBs=; b=TLB6N7kRV1Pvj69pGZxNvgVpimmBhrQm4024fB2/cLAeXlWO70UUDqNWhaiMrC22zD 7m1xy13PSCDMA7HSTWVudd/2m+DZv0bI7Lr6YMXFnjkbC30rNpaBIRQqci/DMQDdbnwb N0IXbR/RnzDVRpCMf33MBDvMWNtFlI74pbdKv7IOZhIHJyHPQJLO9NV/V+z31iwJogIb Cf7BCGcFU4c6i1bPIkvyTx2CT24KeOLPA1/lmNX9Zw9O4nEdhd7MXpejl8z344OzKL2R HJceNu5kMIyVlf+FJXycS1k51DOfVQq9itHSxG9fHj/mYdC44cCX41EhZaJfIqvMIzEK wMjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=HtLdXNwl; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s4si2447738plq.140.2019.06.05.14.23.51; Wed, 05 Jun 2019 14:24:07 -0700 (PDT) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=HtLdXNwl; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726744AbfFEVV3 (ORCPT + 99 others); Wed, 5 Jun 2019 17:21:29 -0400 Received: from mail-ed1-f66.google.com ([209.85.208.66]:41133 "EHLO mail-ed1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726502AbfFEVV3 (ORCPT ); Wed, 5 Jun 2019 17:21:29 -0400 Received: by mail-ed1-f66.google.com with SMTP id p15so4447665eds.8; Wed, 05 Jun 2019 14:21:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:reply-to:references:mime-version :content-disposition:in-reply-to:user-agent; bh=jmqIL302FliKztrku23iEbel/vN8Om9KZr4KoJVUQBs=; b=HtLdXNwlPpU1RFxmpHZq/rH78NiFyUbMRNR4XLHGl5DFaciTYXzczF+YOEaOthAltb LzfrkniAfXeG9XfS8k8l9WWdWJTCb5t0Qydwrx9HDSWfQxVverG9o6eBxNShll611+Xk D8MDiZNeQ9S8YaEkKYI92ohNxvxiKGjBgdANYmGfcUxcUcAmDq0kOuCUWCUGDd+d7T8p u6tdGt0M3uFblUt67ApuYvpm2psLcK1H66EYwESimtXZEx5o8tKBJ+DBxrVlRNPstQNp 2xk+bEsv5+yigah3/6Lj+npsGt7LKO/9d2Bkh2IRQhSgPxae7KCEIl0WkMOEkno6k2FP 1Lng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:reply-to :references:mime-version:content-disposition:in-reply-to:user-agent; bh=jmqIL302FliKztrku23iEbel/vN8Om9KZr4KoJVUQBs=; b=koJKcjNK3t9Pa3UyL1yc0Wrz5vhAFSHaE2QlOK4opiGgGhjcnL6Lc+6PBpJVdryrwH +IBMTu312jUeJpVWBTSyo0KYN3vSPvI028EB95Lm6roN6m6jpJjPGIC1K9K7eW9V2+OI SejDtgM8BE5ICPclug6oiStUEeupApBuCgl9lpnLzdESyS/aoYvjbZSfsDFMzRThy4Z9 adwVoilq6arO+Zagnqm8RnoZN5iLVuL1TiGbZCyCq0NDuB4erTWZj8opj9UOweZwf9dG AeUlaw5UwSknO6r2biKUAoy8RGJBSoSXJbCPVcJ/HCKK0SnF17rGdMyAXCSvzNwv8Cpj 0pjQ== X-Gm-Message-State: APjAAAXB03nuvAtfwLjENKn2jBpL3NBZrEQCtSuZeshnnyclVUDfplyT obCfsomMjTsziW9UvVsGH+8= X-Received: by 2002:a50:ca48:: with SMTP id e8mr45737760edi.101.1559769687081; Wed, 05 Jun 2019 14:21:27 -0700 (PDT) Received: from localhost ([185.92.221.13]) by smtp.gmail.com with ESMTPSA id e19sm3550413edy.36.2019.06.05.14.21.26 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 05 Jun 2019 14:21:26 -0700 (PDT) Date: Wed, 5 Jun 2019 21:21:25 +0000 From: Wei Yang To: David Hildenbrand Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-ia64@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, linux-arm-kernel@lists.infradead.org, akpm@linux-foundation.org, Dan Williams , Wei Yang , Igor Mammedov Subject: Re: [PATCH v3 11/11] mm/memory_hotplug: Remove "zone" parameter from sparse_remove_one_section Message-ID: <20190605212125.gwmvjjicylhp3wcz@master> Reply-To: Wei Yang References: <20190527111152.16324-1-david@redhat.com> <20190527111152.16324-12-david@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190527111152.16324-12-david@redhat.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 27, 2019 at 01:11:52PM +0200, David Hildenbrand wrote: >The parameter is unused, so let's drop it. Memory removal paths should >never care about zones. This is the job of memory offlining and will >require more refactorings. > >Reviewed-by: Dan Williams >Signed-off-by: David Hildenbrand Reviewed-by: Wei Yang >--- > include/linux/memory_hotplug.h | 2 +- > mm/memory_hotplug.c | 2 +- > mm/sparse.c | 4 ++-- > 3 files changed, 4 insertions(+), 4 deletions(-) > >diff --git a/include/linux/memory_hotplug.h b/include/linux/memory_hotplug.h >index 2f1f87e13baa..1a4257c5f74c 100644 >--- a/include/linux/memory_hotplug.h >+++ b/include/linux/memory_hotplug.h >@@ -346,7 +346,7 @@ extern void move_pfn_range_to_zone(struct zone *zone, unsigned long start_pfn, > extern bool is_memblock_offlined(struct memory_block *mem); > extern int sparse_add_one_section(int nid, unsigned long start_pfn, > struct vmem_altmap *altmap); >-extern void sparse_remove_one_section(struct zone *zone, struct mem_section *ms, >+extern void sparse_remove_one_section(struct mem_section *ms, > unsigned long map_offset, struct vmem_altmap *altmap); > extern struct page *sparse_decode_mem_map(unsigned long coded_mem_map, > unsigned long pnum); >diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c >index 82136c5b4c5f..e48ec7b9dee2 100644 >--- a/mm/memory_hotplug.c >+++ b/mm/memory_hotplug.c >@@ -524,7 +524,7 @@ static void __remove_section(struct zone *zone, struct mem_section *ms, > start_pfn = section_nr_to_pfn((unsigned long)scn_nr); > __remove_zone(zone, start_pfn); > >- sparse_remove_one_section(zone, ms, map_offset, altmap); >+ sparse_remove_one_section(ms, map_offset, altmap); > } > > /** >diff --git a/mm/sparse.c b/mm/sparse.c >index d1d5e05f5b8d..1552c855d62a 100644 >--- a/mm/sparse.c >+++ b/mm/sparse.c >@@ -800,8 +800,8 @@ static void free_section_usemap(struct page *memmap, unsigned long *usemap, > free_map_bootmem(memmap); > } > >-void sparse_remove_one_section(struct zone *zone, struct mem_section *ms, >- unsigned long map_offset, struct vmem_altmap *altmap) >+void sparse_remove_one_section(struct mem_section *ms, unsigned long map_offset, >+ struct vmem_altmap *altmap) > { > struct page *memmap = NULL; > unsigned long *usemap = NULL; >-- >2.20.1 -- Wei Yang Help you, Help me