Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp486730imm; Wed, 18 Jul 2018 05:48:39 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdkUEY9AJPIJoCGIQAen9gMhCVRFxHsskTERAk6eNFfHMjXjJ+rnQZAeK1JNt9dBNxy4Oto X-Received: by 2002:a63:d916:: with SMTP id r22-v6mr5548417pgg.381.1531918119425; Wed, 18 Jul 2018 05:48:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531918119; cv=none; d=google.com; s=arc-20160816; b=QTh/hUx1HE5m6tJhySuZdLciQjzO4iYS0I1MWzrRTjaDoLSIojhrt1u6/48nKkl3Cn NICm53G3mCEbSaXArkedJGCvZxK2Ece2xz6+nK3uTMnLyB7VCuHjlS6/D2BlBK0MK49G eiYib0lh/fhsHb6X+aN8gf5EWcs0xNCwMmcO2+b+k/39g3QLDyeGro0G3zo9ikqSYQE9 oASl52+y3g6dM+AqdGGF9oGAdgBlscowGANqxHsbiFisc54fyVG8f70icQ4THhVa3sYD nHUYK1IgcVZPf5Xoiqlqk3Kh49DsaSnmz0CcpHKZmh+g5gYOu4xDuefgNFzwiDj3PKph 39TA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=ulM6Uws4KEszfuHE1PFThmF06OUCNaEC8I4xhB7aV4Y=; b=0DYKkJORoUnQJztp2/WcOs9yIpG4wUcPS16iUMdFKlodZambrtPr1QqlR2mXeUBEcP 46Gkd9BgQp4Amf5lnikvUqv50RjT5GYSSxlYw9PrSX+DZjiVIyET5TmQn8YVqzmYTbir TEIjw4rbXdo9ZfNGvfTOs8j0VAYyOXymZbSdPppnKmY7NMG8u8RcM9M2nU5aeEGWiuVd IyW7sPk3kzJ6rfQAOsMaRLIVVOt7bBlOqxC6NPBTCfZfAF8lXC6d7dgBHBDM+p5ogyNH +3EWJ8lNQLcoRuuYlZPPXXynek21kQkRDPOSf+jh9zAcz70tJI2NkeKx2ZTHBLo6TAo/ L71w== 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 r138-v6si3778584pfc.202.2018.07.18.05.48.24; Wed, 18 Jul 2018 05:48:39 -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 S1731087AbeGRNZY (ORCPT + 99 others); Wed, 18 Jul 2018 09:25:24 -0400 Received: from mail-wm0-f45.google.com ([74.125.82.45]:38063 "EHLO mail-wm0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729263AbeGRNZY (ORCPT ); Wed, 18 Jul 2018 09:25:24 -0400 Received: by mail-wm0-f45.google.com with SMTP id 69-v6so2735473wmf.3 for ; Wed, 18 Jul 2018 05:47:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=ulM6Uws4KEszfuHE1PFThmF06OUCNaEC8I4xhB7aV4Y=; b=FhBv8eT3H8BZE+iDBi6/lW3P1Qu7uzr03pdsCuXzLhjCyNlfDeY/1+fFgJBeA/DKO6 MtPk2rajfrJCaTFmtA0HQ4IeF6+JhMOtZQ/JpcxMl00BNBHOxYBeLqnrSR+8twWXBCi5 A/u8N7oxb2X958H0EvAEA3vU0pdwUn0nnr9m/jEHdc2paIHh9uqCOEqGw8hnn6mfBSw9 TM2ugYnj4qlTTEmzVeDnSVbWxxSZ7YvxIe9npZRjJq208UyHy36mHxADD5v2ypbcT29M LzTObNqA9RGkGXLiYJFRKLXP1Ukou/jbhaRHd8LgUffaS5ePLi925p6ojOM67U+vUuw+ GCXQ== X-Gm-Message-State: AOUpUlGhIdN50Z+5OvMafKqtHfTEEBVWJraO8o7UgpFuC6/iqQ1KE6Vw Cq/sSHFBMPkpZzpYEApVmYk= X-Received: by 2002:a1c:1609:: with SMTP id 9-v6mr1515151wmw.12.1531918057291; Wed, 18 Jul 2018 05:47:37 -0700 (PDT) Received: from techadventures.net (techadventures.net. [62.201.165.239]) by smtp.gmail.com with ESMTPSA id s5-v6sm4229368wro.33.2018.07.18.05.47.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 Jul 2018 05:47:36 -0700 (PDT) Received: from d104.suse.de (nat.nue.novell.com [195.135.221.2]) by techadventures.net (Postfix) with ESMTPA id ED2BA12401B; Wed, 18 Jul 2018 14:47:35 +0200 (CEST) From: osalvador@techadventures.net To: akpm@linux-foundation.org Cc: pasha.tatashin@oracle.com, mhocko@suse.com, vbabka@suse.cz, iamjoonsoo.kim@lge.com, aaron.lu@intel.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Oscar Salvador Subject: [PATCH 0/3] Re-structure free_area_init_node / free_area_init_core Date: Wed, 18 Jul 2018 14:47:19 +0200 Message-Id: <20180718124722.9872-1-osalvador@techadventures.net> X-Mailer: git-send-email 2.13.6 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Oscar Salvador When free_area_init_node()->free_area_init_core() get called from memhotplug path, there are some things that we do need to run. This patchset __pretends__ to make more clear what things get executed when those two functions get called depending on the context (non-/memhotplug path). I tested it on x86_64 / powerpc and I did not see anything wrong there. But some feedback would be appreciated. We might come up with the conclusion that we can live with the code as it is now. Oscar Salvador (3): mm/page_alloc: Move ifdefery out of free_area_init_core mm/page_alloc: Refactor free_area_init_core mm/page_alloc: Split context in free_area_init_node mm/page_alloc.c | 181 +++++++++++++++++++++++++++++++++++--------------------- 1 file changed, 114 insertions(+), 67 deletions(-) -- 2.13.6