Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3378076imm; Tue, 17 Jul 2018 03:58:38 -0700 (PDT) X-Google-Smtp-Source: AAOMgpexGNk4MN3V9VvoZk4zTY1C+pfxclDXpU/ktXZQOBHoFDHHXIPf+Esb/a28xsnMMfUgz1FS X-Received: by 2002:a62:2352:: with SMTP id j79-v6mr142212pfj.221.1531825118401; Tue, 17 Jul 2018 03:58:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531825118; cv=none; d=google.com; s=arc-20160816; b=PDFDKIaN8Di/T8kYaz8HTkMZgUNT1JQjQC805LyGs9RLfKzmESruNZQxg3Dw0wNJSO hTW9/v+PhZ9j648xuuGPVnL7WlXoEhLjuqrtmboBz2s285e1nazLR+GzXjPDw/eC2q03 RO9bE/SUGMZB4H24kwv+HppIHjHPPh2xiZWSIBb+Tan5oJkGR8CP2VBgNCdgEk5yq/de IJ9sBjR3PHuVUjbzX4WsgjNB+ihcjU0iuq3F3mMVY5kuDMaxr+LIHAgWA+vAHH3nV6UO MjXtLzjbI8NG7kOlUCaXtQz+m51zfSevBXk+K1ikbBvN0Jcp33cG4w+uvJDgEVzi3cO9 MLvQ== 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=8/ckz05765y3DTNEDB3T3WNjWl/CAJH1fHKMMtvJxDM=; b=jQOObXCa6B5+JY0x6/zCIQZedinXRd7PNfxBo4Su34ooDGFQzfF7aqaXDsaImsfJ+q IYlD0C7k4qiQFX9qjM2fiP+2ylqhjTaSQrIc6fCXRb6tjT/CKsqkWEjIRdbNB/HCQn/y FFawJmfhGc590eE0T1tW/533tsoAVMep8wG4LPfcNr9ugzkD99W2tJbLz7G033zX4bx3 BLujM/kDKN3EovofyW9XK6D8i/Bd4bxv5haLgG4VpL7I3cOrCXMzYgN1geJ+31uJa3A0 kEA3QO9LghdJYOvy2l/aInpCLF/DrErGCJqERfkPYBkmYJHCTWB3+NWJEHT/dkE3sLVy poWQ== 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 k23-v6si630655pgl.633.2018.07.17.03.58.21; Tue, 17 Jul 2018 03:58: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 S1731079AbeGQL25 (ORCPT + 99 others); Tue, 17 Jul 2018 07:28:57 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:54467 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729641AbeGQL25 (ORCPT ); Tue, 17 Jul 2018 07:28:57 -0400 Received: by mail-wm0-f65.google.com with SMTP id c14-v6so1027900wmb.4 for ; Tue, 17 Jul 2018 03:56:54 -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=8/ckz05765y3DTNEDB3T3WNjWl/CAJH1fHKMMtvJxDM=; b=CDsA6o4UKi9oCRS8CcqFs3fO9OG0Ip1oCRzxTjVb+WFztxuzGx45O7SuvQNBiR5TLb lzsJIcx2M9VyRCyyyLNYbBuDBiCBWlLT3kUqG4WurQLYqARLS6xrFNJPeOZizVCZdvfW /YFTY8HxKt/QMWNqvGBR8hA4uPPcbixh/+vjZe9Tokc50p1tH0yC62Vi2YwJ2A5GYMB9 Q6qStoQ3UTQhm/8WZdzZiJ+RkMKlRsoDveD3LRPoHLHMEXkRGkRwR9drauyWsfnniieB NLIG0BdkbjOA+xqAgcCGSnKNp8V/1D9bBHueZgCbJXOD7xwzfgeXWB/s0nQVS7//mOq0 KGmw== X-Gm-Message-State: AOUpUlHHJtU/qxYRiITt2T3U67+717hFpDK82zN4spM/ksmeziIQ7bbo OW07DCJ7piY5MFjHEllgJoUFD6YY X-Received: by 2002:a1c:ad50:: with SMTP id w77-v6mr1097837wme.54.1531825013735; Tue, 17 Jul 2018 03:56:53 -0700 (PDT) Received: from techadventures.net (techadventures.net. [62.201.165.239]) by smtp.gmail.com with ESMTPSA id u3-v6sm1083583wre.21.2018.07.17.03.56.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Jul 2018 03:56:53 -0700 (PDT) Received: from d104.suse.de (nat.nue.novell.com [195.135.221.2]) by techadventures.net (Postfix) with ESMTPA id 20BF2123F8B; Tue, 17 Jul 2018 12:56:52 +0200 (CEST) From: osalvador@techadventures.net To: linux-mm@kvack.org Cc: pasha.tatashin@oracle.com, mhocko@suse.com, vbabka@suse.cz, akpm@linux-foundation.org, aaron.lu@intel.com, iamjoonsoo.kim@lge.com, linux-kernel@vger.kernel.org, Oscar Salvador Subject: [RFC PATCH 0/3] Cleanup for free_area_init_node / free_area_init_core Date: Tue, 17 Jul 2018 12:56:19 +0200 Message-Id: <20180717105622.12410-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 While trying to cleanup the memhotplug code, I found quite difficult to follow free_area_init_node / free_area_init_core wrt which functions get called from the memhotplug path. This is en effort to try to refactor / cleanup those two functions a little bit, to make them easier to read. It compiles, but I did not test it. I would like to get some feedback to see if it is worth or not. Signed-off-by: Oscar Salvador Oscar Salvador (3): mm: Make free_area_init_core more readable by moving the ifdefs mm: Refactor free_area_init_core mm: Make free_area_init_node call certain functions only when booting mm/page_alloc.c | 193 ++++++++++++++++++++++++++++++++++---------------------- 1 file changed, 116 insertions(+), 77 deletions(-) -- 2.13.6