Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1697477imm; Thu, 19 Jul 2018 06:29:38 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdUzVbfr/LjSbD6EuHAzUGi9aW7k4TBQNX+soiLq8HhgSOG2ijES2MaFJuBPGukHIHfCAyY X-Received: by 2002:a17:902:123:: with SMTP id 32-v6mr9922266plb.181.1532006978296; Thu, 19 Jul 2018 06:29:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532006978; cv=none; d=google.com; s=arc-20160816; b=0b0VJgPtaQA/htOsX8ZDPrPyWi02QiySqp7KuT1Hcr696F4yctWFaZLpbU1Yb7nN+6 XBI/aE5Dve4K8fVJ5PCS6duJ2lz8Oz5CvLt0KJuUfZk4ifHMZqMpB/FZ2psTH3oAKnxC 9nkZPvObOlicn/aRfpu5YPvpWHvp/Dz7UH+3YdYKT2o3KyieXrx2F64/2Sr+xq9vXxxU awzXaOQ+btigXUiKREJT3ZYeKmi7axX1wuU4yRrfyFCQJbzPwWiuuier+Vo5ggE64AMM OdLI5P9toLfmPrH744SH85lKRZ3pxOll2CA8/IvpViTsLQ1m6dK08U1d1tLbCi3C+n+2 aLmw== 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=7t58BQP9CBS2eZVfsdI7jeLRMaby0oLDAT14rxZK8rc=; b=XKRJVyr67FhAWJcnHalcdec1RmysAVwsx6WOa7ZNocGo8DCb1uLpVlVwESnnwnT/pV R3w/BIPjy6e6ORegByjXrD7qwVqhyV5fUq0oXovSMa5UX4nCf/bHiXCuR1hHL9QhcQx3 F2y8riOVIQFfPF4Us61Qd4W8AdV5+abSzVnmwlSdXyzIUkuykqFsXXj2rYqE4m4LGHj/ vpULdjkG7PRVtN/TUWzunNj1XReiB1uRHI0/sp6uJaJ4pMbMvO5U9HHB2RKxC4BRSosw lel+0Iu55aNxXNDU7mx/DGrJAAvon+FJYVzKB7oe2NYRq1p9yrCyLdmgN0+x4YhqaM5K pK4g== 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-v6si5571959pgm.56.2018.07.19.06.29.23; Thu, 19 Jul 2018 06:29:38 -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 S1731786AbeGSOK5 (ORCPT + 99 others); Thu, 19 Jul 2018 10:10:57 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:33579 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731600AbeGSOK5 (ORCPT ); Thu, 19 Jul 2018 10:10:57 -0400 Received: by mail-wr1-f65.google.com with SMTP id g6-v6so8094043wrp.0 for ; Thu, 19 Jul 2018 06:27:46 -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=7t58BQP9CBS2eZVfsdI7jeLRMaby0oLDAT14rxZK8rc=; b=t1E1q/6W2dcZ47VF2atMTmiH8W1N42NfX1DaTcHO1M0+2TsAx2aNAlIY2N/Avhlwf7 xrNK6St8FcOhnE+jG+ZA3qZYdCO4ZivfAKJbP4h/J5mrSJbVVobCaIuS7E9Z09eCpBY7 JFJis5/dmJi33tnsJqGJT8Ym4g2rZHmZ4WbmwpYSsyhjicvuRmz2IMgdUbPWAzA7kAU2 SNwafSKAFEv8E3EFvHIcbwrPdyNjnM4D69760yRMQ+q7QjFTo/rslNI3UR4uyFBN6SpL 4ixiDjJb7PkWiCd2Z2iDuwzCJcPlGhbo08fJQOWxJjRvobVmWWz+/JQk3bSIor9aH/lE kxVg== X-Gm-Message-State: AOUpUlG9uw3d5exX+Hwosd8BP3e6lGsASGddXjrv2DyIbo+gzP3UNpzu C0XEj3ov88V8JFZoAbDhRBk= X-Received: by 2002:adf:8466:: with SMTP id 93-v6mr7152585wrf.274.1532006865794; Thu, 19 Jul 2018 06:27:45 -0700 (PDT) Received: from techadventures.net (techadventures.net. [62.201.165.239]) by smtp.gmail.com with ESMTPSA id f20-v6sm10205500wrh.89.2018.07.19.06.27.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Jul 2018 06:27:45 -0700 (PDT) Received: from d104.suse.de (charybdis-ext.suse.de [195.135.221.2]) by techadventures.net (Postfix) with ESMTPA id 72751124166; Thu, 19 Jul 2018 15:27:44 +0200 (CEST) From: osalvador@techadventures.net To: akpm@linux-foundation.org Cc: pasha.tatashin@oracle.com, mhocko@suse.com, vbabka@suse.cz, aaron.lu@intel.com, iamjoonsoo.kim@lge.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Oscar Salvador Subject: [PATCH v2 0/5] Refactor free_area_init_node/free_area_init_core Date: Thu, 19 Jul 2018 15:27:35 +0200 Message-Id: <20180719132740.32743-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 This patchset pretends to make free_area_init_core more readable by moving the ifdefery to inline functions, and while we are at it, it optimizes the function a little bit (better explained in patch 3). Oscar Salvador (4): mm/page_alloc: Move ifdefery out of free_area_init_core mm/page_alloc: Optimize free_area_init_core mm/page_alloc: Inline function to handle CONFIG_DEFERRED_STRUCT_PAGE_INIT mm/page_alloc: Only call pgdat_set_deferred_range when the system boots Pavel Tatashin (1): mm: access zone->node via zone_to_nid() and zone_set_nid() include/linux/mm.h | 9 --- include/linux/mmzone.h | 26 ++++++-- mm/mempolicy.c | 4 +- mm/mm_init.c | 9 +-- mm/page_alloc.c | 159 +++++++++++++++++++++++++++++-------------------- 5 files changed, 120 insertions(+), 87 deletions(-) -- 2.13.6