Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp360744imm; Thu, 26 Jul 2018 05:03:58 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeYe/r63yoKkyBwoJbyzSylhjbPfuyzxyTw2i8oddLmS4pEC2YKPhFVKIqAB2zuuMFqImdg X-Received: by 2002:a63:b00f:: with SMTP id h15-v6mr1696501pgf.442.1532606638646; Thu, 26 Jul 2018 05:03:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532606638; cv=none; d=google.com; s=arc-20160816; b=TCNLrqx1YYdSVH9Q3YpOhR5J7d3CnQ41wLs48RJlPI8VGMZ8EEzC4sA65kM2Q39lcX OGm8c1KZGfZsNjMzZluXTENHA+1Mz+x+U6cMjfbd4iwIBlOs6j2PiZJDDkadb1iTNFFG hIIdBLyuMyG9jEVcOHNKsyLMr0H5+9p5keRzL8xLbycFUZngMLHJUQ1Oap6rL8Lcjcro e2xqiB9B5OJrA9Gwp6Q+5ovkgcrPg2wYiWO99OheiiEpqljpJOVW/F0Qfn1Jc7ZK5a/p bGEkUYzJporMWoc78ZgMdd9Fc/OI4PNKoUAZwQTw2c+GLYuEFc5SG8TWmwPlcRuoiTgV 3ZYw== 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:arc-authentication-results; bh=KW+cuey2Uyhx4e4RgmCN1icwoYJbhN5KxxZiIO6NWy0=; b=S1L8Fq4z8gHaXQblQepMcy6GLCBiA6/LsFQl5gJHc7Uy6eM6rzMjRGQLJl3J+0B2si dKgJRz8F06dKSeavBQJ6aHJWbVj9NMyfIUtinrCqKS4yGcTTb8FKyK3LnHv15Tqk33Ph aL6KWuNt08028PwP29xQbpuh9fJ1g4WqnHkvH0MYMqADoPHpRQQGKtrZ6tWmLu1aqxdx WOvSVy3VHUmP/rnXyNLW83XruQZk8aQad+fb/Jd8l38PH58yoOYw+H9qkXBazyi+TAvE U0On/UPSIOzxwpO6NROX7noa6fNZL+qwTIaQo5MTzDGAGAUiJxQrZAabdRCnWXGurToO RoRg== 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 s15-v6si1261010pgr.269.2018.07.26.05.03.18; Thu, 26 Jul 2018 05:03:58 -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; 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 S1729839AbeGZNS5 (ORCPT + 99 others); Thu, 26 Jul 2018 09:18:57 -0400 Received: from mail-wr1-f44.google.com ([209.85.221.44]:39704 "EHLO mail-wr1-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729271AbeGZNS5 (ORCPT ); Thu, 26 Jul 2018 09:18:57 -0400 Received: by mail-wr1-f44.google.com with SMTP id h10-v6so1450516wre.6 for ; Thu, 26 Jul 2018 05:02:25 -0700 (PDT) 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:references :mime-version:content-disposition:in-reply-to:user-agent; bh=KW+cuey2Uyhx4e4RgmCN1icwoYJbhN5KxxZiIO6NWy0=; b=mff6xHF86NfHkKn9fsm8esMaWXSQN4A0RyWZ91YZqLDELyOJ+rIruE05mNBZTo1U6C u8S6UVAHI1P2cKtd3GZTPkv5VgAK81SqwVpl4XBCsuNmNQJq4BVroX8PiYp7SvudAdbN Wl2hFJVrbxjI8f1B4Eh3oqoDdE8V8xrxydWYQuIhQFUd41uP1xJtLPlEKO3dxauWrTV6 QiVEOIkbFcCxMjKRpHrW5yK0pfoqJr4orI1puqbEIJP54GLrRYyINHsjerh5DqsMpmWs eh2dttwbIIuckmn4T6atJvmr1mmvZ0HV3ini6XyqeZtD+SyLEzIwT0jo4kIaR6nAC3+o WQMQ== X-Gm-Message-State: AOUpUlFoAHANGaNr7DxKF5Usp+N3Q8AicjWq7F4ztZB3AftSzMgcQKqi cWm3RqexnuzgDPawfm+B83k= X-Received: by 2002:adf:f485:: with SMTP id l5-v6mr1397127wro.259.1532606545418; Thu, 26 Jul 2018 05:02:25 -0700 (PDT) Received: from techadventures.net (techadventures.net. [62.201.165.239]) by smtp.gmail.com with ESMTPSA id z62-v6sm1049583wmc.10.2018.07.26.05.02.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Jul 2018 05:02:24 -0700 (PDT) Received: by techadventures.net (Postfix, from userid 1000) id 237F012439A; Thu, 26 Jul 2018 14:02:24 +0200 (CEST) Date: Thu, 26 Jul 2018 14:02:24 +0200 From: Oscar Salvador To: akpm@linux-foundation.org Cc: mhocko@suse.com, vbabka@suse.cz, pasha.tatashin@oracle.com, mgorman@techsingularity.net, aaron.lu@intel.com, iamjoonsoo.kim@lge.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, dan.j.williams@intel.com, Oscar Salvador Subject: Re: [PATCH v3 5/5] mm/page_alloc: Introduce memhotplug version of free_area_init_core Message-ID: <20180726120224.GA8302@techadventures.net> References: <20180725220144.11531-1-osalvador@techadventures.net> <20180725220144.11531-6-osalvador@techadventures.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180725220144.11531-6-osalvador@techadventures.net> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 26, 2018 at 12:01:44AM +0200, osalvador@techadventures.net wrote: > - */ > + * When memory is hot-added, all the memory is in offline state. So > + * clear all zones' present_pages because they will be updated in > + * online_pages() and offline_pages(). > + */ Sigh..., I should have run checkpatch. Tabs are missing there > +void __paginginit free_area_init_core_hotplug(int nid) > +{ > + enum zone_type j; > + pg_data_t *pgdat = NODE_DATA(nid); > + > + pgdat_init_internals(pgdat); > + for(j = 0; j < MAX_NR_ZONES; j++) { And missing a space here. Sorry, I will fix all this up in the next re-submission once I got feedback. Thanks -- Oscar Salvador SUSE L3