Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp5143971imm; Tue, 31 Jul 2018 06:18:54 -0700 (PDT) X-Google-Smtp-Source: AAOMgpes8vICgPWuIfQV+KIKFpbzUjzmBpN02TxIVD40Bhw/8IO3i4djyHqHGqROP+xQyTv9i67w X-Received: by 2002:a65:6086:: with SMTP id t6-v6mr20738481pgu.424.1533043134430; Tue, 31 Jul 2018 06:18:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533043134; cv=none; d=google.com; s=arc-20160816; b=fbBBnS6hGfVp7hpdBeDnntNaScmH8p+ERIcvGH0Pj1iEgtfTodKtTzqA1Ql47r7DdO lP530dWo2iPzWj0WsmSAPEqwKMOqmMju7OYLNLajdqPtFpdEbnCSwfQKjJ0LLscI34bk 9LKoiNV0e+1CyxKNfUniGQzvSOAkY132iOf23E3+dTLqgjTTlWbFGIFzd7xgZHUOrOXM uKxR+xV07F+AYfOJ3pNi30NX3gm3ISRlaDRzSLjj/TceoVbTn3zvu3ZZT7Fmbm8y/U5I tahtJ4XgjIbQkNxXCAErCu6J4Q0xvxYqjeS94OGLTCovLrn5lAoL4NNdOG5y0rCAo8ah dKIg== 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=qQanTt4+ddHuPodgPPZH+CVQYDRU+bebT2qesJNJkXo=; b=Ujhmew11sAUW+DnDx+GdQNFmB5/nIdrc32kzm6PdRT1WyFR0ALWwBRDgVXvzDwOqNP 1NZUXHJtDiYZWIFVsZG8pPTBF9JW8J2wdKzpo72N26WZuxOrJnqjP5DncCS/BDynM4u4 k12vAlEsfi4WXAhpd5yQV4wg9p3V8SyYDQ3s3vGAcUcm4tfFOT7QmN/3y9Tw8z2z0XGK E5bFHcYhYtJqG46kc7KI7JF92jKFh9nTkncmdPtY1Xw9kJ+JSRmuyPmEPTXVBy7ZJ4v2 ZNvbo9qG1Y9BByWsBstyxQhswzbuEFyNWvBwub9n00Jx9VocMwP5erKIGaZNNiC1Qspb fnMw== 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 cf13-v6si12696384plb.175.2018.07.31.06.18.38; Tue, 31 Jul 2018 06:18:54 -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 S1732197AbeGaO6D (ORCPT + 99 others); Tue, 31 Jul 2018 10:58:03 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:54618 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732127AbeGaO6D (ORCPT ); Tue, 31 Jul 2018 10:58:03 -0400 Received: by mail-wm0-f68.google.com with SMTP id c14-v6so3033882wmb.4 for ; Tue, 31 Jul 2018 06:17:44 -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=qQanTt4+ddHuPodgPPZH+CVQYDRU+bebT2qesJNJkXo=; b=IgOBSd42XSjsanmG5fOu2g+7lCIsygAhWHTxrClJHWt3EE8ifpu36Q6e4Hp0L4FJza Sdu9xI8zvav66myAxFGGmCsuw7iSxuKmw3VHEqM9l4umRwLypIkyQ/LPm4SUyyuV53ci V3H9hqFs+hAvE+uyWRI49URce5obX8M7m/piYgfmhpg6FwoGjdffbMCwc5lt4bPIWB1n ZqUs9eXhSgPff/FERi+3DVS/qBsKugPddpwxmjssdwd6gjfzwyXPqdXwpWCqkIfFhqwT MdLcDvLjpu07En5OV2JNVPOSQZ7kfPE8DZxbOYwjXNf4xCdcnSEuaO7lA5+BEnxgMeAF rKKQ== X-Gm-Message-State: AOUpUlFO3bG6A0oKivLp2XmIXshMo9NdzSLf5R8Bltwi9FVs5xaxvhUl bbaGXTijCXvLlI20+qG0YKQZ7xi9bMU= X-Received: by 2002:a1c:207:: with SMTP id 7-v6mr2326987wmc.146.1533043064285; Tue, 31 Jul 2018 06:17:44 -0700 (PDT) Received: from techadventures.net (techadventures.net. [62.201.165.239]) by smtp.gmail.com with ESMTPSA id b11-v6sm14054822wrv.82.2018.07.31.06.17.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 31 Jul 2018 06:17:43 -0700 (PDT) Received: by techadventures.net (Postfix, from userid 1000) id 7B7881244E0; Tue, 31 Jul 2018 15:17:42 +0200 (CEST) Date: Tue, 31 Jul 2018 15:17:42 +0200 From: Oscar Salvador To: Michal Hocko Cc: Pavel Tatashin , Andrew Morton , Vlastimil Babka , kirill.shutemov@linux.intel.com, iamjoonsoo.kim@lge.com, Mel Gorman , Souptick Joarder , Linux Memory Management List , LKML , osalvador@suse.de Subject: Re: [PATCH] mm: make __paginginit based on CONFIG_MEMORY_HOTPLUG Message-ID: <20180731131742.GB473@techadventures.net> References: <20180731124504.27582-1-osalvador@techadventures.net> <20180731130434.GL4557@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180731130434.GL4557@dhcp22.suse.cz> 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 Tue, Jul 31, 2018 at 03:04:34PM +0200, Michal Hocko wrote: > On Tue 31-07-18 08:49:11, Pavel Tatashin wrote: > > Hi Oscar, > > > > Have you looked into replacing __paginginit via __meminit ? What is > > the reason to keep both? > > All these init variants make my head spin so reducing their number is > certainly a desirable thing to do. b5a0e01132943 has added this variant > so it might give a clue about the dependencies. Looking at b5a0e011329431b90d315eaf6ca5fdb41df7a117, I cannot really see why this was not done in init.h Maybe the comitter did not want to hack directly into __meminit. I think that __paginginit was a way to abstract the whole thing without having to modify init.h directly. I guess we could get rid of it and so something like: #ifdef CONFIG_MEMORY_HOTPLUG #define __meminit __section(.meminit.text) __cold notrace \ __latent_entropy #else #define __meminit __init #endif And then we would have to replace __paginginit with __meminit. But honestly, puting an #ifdef in init.h feels a bit wierd to me, although I do not really have a strong opinion here. Thanks -- Oscar Salvador SUSE L3