Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp5247877imm; Tue, 31 Jul 2018 07:53:05 -0700 (PDT) X-Google-Smtp-Source: AAOMgpf/ZT/a5phmjHP+U15L5xhholbJ3hVzGFa/lTKpf49wV+AimNKiWjTgBB1uXFkEftvV0tZx X-Received: by 2002:a62:3cd7:: with SMTP id b84-v6mr22643452pfk.183.1533048785211; Tue, 31 Jul 2018 07:53:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533048785; cv=none; d=google.com; s=arc-20160816; b=bAdm1KHh1CPRPYma+rDYY2RujcxEZRGsvMIQjUgzRGRvLTwqhY/OTPeea3k6PJD9wG Gkqw6SUCpc5IEJYelSFo3cIwq9hQJqHm+5wIZiZ9TfgznV5x56A6FllDjUXUre9qinN0 GzuWSzOEwULJs5uffSm6AHX31mL+zfdD2AjEGi6MkGzgrUpb65wxg6jvFPtWX7RCvJvp LJ3h4EjfPBoRe9HtKyXPQfKhowLOUUVMF31voIgMp6Sh3X2JhurzDXy7nHzzTXBAU0QI 1N8+qwetKco78J+EnT34WoCRJ8bLg4+o4m8hCQ6iFkC/qzV41yFQjoqhq3JGSMYnMhsl cEmA== 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=URY4aDeqZ9DYmgCaZcwjpXNvvzO191bhEH5WjdHBK1Q=; b=PzeQZ4hGJabK/rbYXswZM2zq/TvmFGMNKjv/ByqfSdQuArcMP86REeHn3Ja6ArBLz3 w7quHuDGZWWAy76MvXdnaBk1780gb9MKgapwGzcwBFJxTDkgLu8wMkb5TJGTAP0waZEk W5lIwSXrqC2URnbiod2lBr9GoWC6NIHPYBeUDSw3xGE8ZRtsr+TZfS7w1KjciWCAyJyu LtEBQR3vI1gHk19Fx7SjpM06nKKrY4xIH6C+nprjzREBP9bfoNNH3442MjCiFQBI5PbM k/1B36jat1AS8bbruChDJ0fY1vLfCRnIqdtX2eYXh+1lwkh2akspLLGiRr9b6ybgFSic jw1A== 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 g184-v6si13950736pfc.115.2018.07.31.07.52.51; Tue, 31 Jul 2018 07:53:05 -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 S1732671AbeGaQcJ (ORCPT + 99 others); Tue, 31 Jul 2018 12:32:09 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:39129 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732443AbeGaQcI (ORCPT ); Tue, 31 Jul 2018 12:32:08 -0400 Received: by mail-wr1-f65.google.com with SMTP id h10-v6so16970928wre.6 for ; Tue, 31 Jul 2018 07:51:27 -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=URY4aDeqZ9DYmgCaZcwjpXNvvzO191bhEH5WjdHBK1Q=; b=Jf5vrqogVkUdDwPUjzfStZBvecnwpucb5qnx9EJIXrQgzE7lsFRF7ooulojTyoN3Zd 8/Tz7YWLRLI2jQ7t3NNK6ho9hbtalLcwvFzvkLNPN/CeUFDLSec+jXhT/y95JEKd8IeY hUACO4cTqFqmIGcTEI+C3ZT9M/ziJM1Xw1wWPmuiv4gqZNyki9zVI/Wafo9p1G/ZdUoA u/V90BiWG/30ozusZfg7TY6BPdvGNF1RS1SPWgR2ijYc4V717uC3YzcExmaqPX/GipWa aQBXvQTzprMFh9n8RCZ2fWvkdlItqjRZ0BRm5rMF/cYnk9UqLv0sLaPrnglN4jbnyIeS TiUw== X-Gm-Message-State: AOUpUlHHigDwTFDNMVndOVkmslAzKgOcTB6B4xw3YNO7WecXFVzg4yDh RLu16F9O+G3b3P2wj6RNZec= X-Received: by 2002:adf:e24d:: with SMTP id n13-v6mr21386789wri.205.1533048686551; Tue, 31 Jul 2018 07:51:26 -0700 (PDT) Received: from techadventures.net (techadventures.net. [62.201.165.239]) by smtp.gmail.com with ESMTPSA id m68-v6sm4151065wmb.10.2018.07.31.07.51.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 31 Jul 2018 07:51:25 -0700 (PDT) Received: by techadventures.net (Postfix, from userid 1000) id 56B8C1244F2; Tue, 31 Jul 2018 16:51:25 +0200 (CEST) Date: Tue, 31 Jul 2018 16:51:25 +0200 From: Oscar Salvador To: Pavel Tatashin Cc: Andrew Morton , Michal Hocko , 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: <20180731145125.GB1499@techadventures.net> References: <20180731124504.27582-1-osalvador@techadventures.net> <20180731144157.GA1499@techadventures.net> <20180731144545.fh5syvwcecgvqul6@xakep.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180731144545.fh5syvwcecgvqul6@xakep.localdomain> 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 10:45:45AM -0400, Pavel Tatashin wrote: > Here the patch would look like this: > > From e640b32dbd329bba5a785cc60050d5d7e1ca18ce Mon Sep 17 00:00:00 2001 > From: Pavel Tatashin > Date: Tue, 31 Jul 2018 10:37:44 -0400 > Subject: [PATCH] mm: remove __paginginit > > __paginginit is the same thing as __meminit except for platforms without > sparsemem, there it is defined as __init. > > Remove __paginginit and use __meminit. Use __ref in one single function > that merges __meminit and __init sections: setup_usemap(). > > Signed-off-by: Pavel Tatashin Uhm, I am probably missing something, but with this change, the functions will not be freed up while freeing init memory, right? Thanks -- Oscar Salvador SUSE L3