Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp5240578imm; Tue, 31 Jul 2018 07:45:52 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfb5Amqat7vkaKMYPwchOmF48rCiDiu3r+Rdo5E3ZQHmiV2dMuctMM323vLc8X1tyrcTSph X-Received: by 2002:a65:6104:: with SMTP id z4-v6mr20680976pgu.361.1533048352800; Tue, 31 Jul 2018 07:45:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533048352; cv=none; d=google.com; s=arc-20160816; b=xthhbE4Z/Ytnlac2Qd1xJAi/DBWOBrl+r1HuShar6oF2+tTowc7ZgFebz4sXtYlNgW LLndENMBugPIinif2IcPpY590Q1ICkGeavUQdrIsNUHk6EwuknSMzVbI1UpdLXg2d7Pb Vfdz78pvhMShdIGG6qBFFO6ErFMvMGChJkDnPGXNhrsCLhar2FfVfjmWFl2S7K/1j4At jzDYuiGdpgxvbaNkU9GBa+u/dn/46kiNV37WS77vhE8I3T3SX5hrYC2tavhwJFuXJl5W pZOsvSiRGvd8Ww9a/raYtNRPSVvj3L1SXHQXBAIC8cqY1dSlN7AcnmmHROV0wZkKS0O4 q6ow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=c1ZV7H/uOs1HL+FtnF8RFLT4VukUaGHB7RMWNK9NASA=; b=kv0jq5nbS3XazayW35J3PL+5Uj2OLmk/sGVnWTraq9xyoV8knui5REFMrj8/uPnq89 GyMa9JUYhNTt3vQMs1rcak4V+3C4EXE5CuZZ0NhHCz5T9tdLmvR2cSQBFvoleFFCH4ds I1McM2XZYrK4TcJpgt4rUuwZgXBDIuKzgeVgjoS1Gf4Ri6A9wCfrwL5Y603J6omFSoBi k9uTjlRrAldbyJSNaG+0yu+LOtRwpHYprrbsT1kG7z2fgUzaPYhDptCH04BrIJuV7u2O WFL7BTtqDUWSTWHFF5X/8maDrj8f0QnK4l4/g0uyIISoKKZO6TXCEZo98HiaxURgzkqK NIpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=O686Dkrf; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a1-v6si4084490pls.476.2018.07.31.07.45.38; Tue, 31 Jul 2018 07:45:52 -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; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=O686Dkrf; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732444AbeGaQYo (ORCPT + 99 others); Tue, 31 Jul 2018 12:24:44 -0400 Received: from aserp2120.oracle.com ([141.146.126.78]:38986 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727397AbeGaQYo (ORCPT ); Tue, 31 Jul 2018 12:24:44 -0400 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w6VE992O077663 for ; Tue, 31 Jul 2018 14:44:04 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : references : in-reply-to : from : date : message-id : subject : to : cc : content-type; s=corp-2018-07-02; bh=c1ZV7H/uOs1HL+FtnF8RFLT4VukUaGHB7RMWNK9NASA=; b=O686DkrfHYJPCAY14MPj66cVGuq2eIniGW4BDOc63GpMbmbhEDxLIizi+xXSihXqr6fY fT+SQHKOTo7GOT1dZuebUjWBgmMOi2lBtXRZaaHTuftXeoYMqT3Q/+bxnOkIL2Pv1fbF XiWvY1/jjB9AtPd4MivLeW1tZQ3a2BRW8HAIfDw3RO7srjIL06+IuTLgEjRJaX9SzKrD 16F8Er5ZOin2rEz/ix978ZlCLvqR7VwuVb4jLEXiZILuw1tkjtUVurKhQRvZsvJfEoNy q/E74uQOlUTsMm0psp70VoKnlTM7C2TWbASgxK6lJVrCSh7cG9ZxXKnxNJkyiep5/00w Bw== Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by aserp2120.oracle.com with ESMTP id 2kggep1bt3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 31 Jul 2018 14:44:04 +0000 Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w6VEi2Ld011148 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 31 Jul 2018 14:44:02 GMT Received: from abhmp0001.oracle.com (abhmp0001.oracle.com [141.146.116.7]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w6VEi2RV018656 for ; Tue, 31 Jul 2018 14:44:02 GMT Received: from mail-oi0-f52.google.com (/209.85.218.52) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 31 Jul 2018 07:44:02 -0700 Received: by mail-oi0-f52.google.com with SMTP id d189-v6so28374145oib.6 for ; Tue, 31 Jul 2018 07:44:01 -0700 (PDT) X-Gm-Message-State: AOUpUlH+2aWf+iVNyED+Re06mwzKXediYaVLnk0MOmBNg25nAGNPACfS NShiUDZCIX0uoBJxAM+CfQiNGccCcKWFOIlbgkw= X-Received: by 2002:a54:4f88:: with SMTP id g8-v6mr23941040oiy.191.1533048241442; Tue, 31 Jul 2018 07:44:01 -0700 (PDT) MIME-Version: 1.0 References: <20180731124504.27582-1-osalvador@techadventures.net> <20180731144157.GA1499@techadventures.net> In-Reply-To: <20180731144157.GA1499@techadventures.net> From: Pavel Tatashin Date: Tue, 31 Jul 2018 10:43:25 -0400 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] mm: make __paginginit based on CONFIG_MEMORY_HOTPLUG To: osalvador@techadventures.net 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 Content-Type: text/plain; charset="UTF-8" X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8970 signatures=668706 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=2 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=765 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1806210000 definitions=main-1807310137 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Oscar, There is a simpler way. I will send it out in a bit. No need for your first function, only setup_usemap() needs to be changed to __ref. Pavel On Tue, Jul 31, 2018 at 10:42 AM Oscar Salvador wrote: > > On Tue, Jul 31, 2018 at 08:49:11AM -0400, Pavel Tatashin wrote: > > Hi Oscar, > > > > Have you looked into replacing __paginginit via __meminit ? What is > > the reason to keep both? > Hi Pavel, > > Actually, thinking a bit more about this, it might make sense to remove > __paginginit altogether and keep only __meminit. > Looking at the original commit, I think that it was put as a way to abstract it. > > After the patchset [1] has been applied, only two functions marked as __paginginit > remain, so it will be less hassle to replace that with __meminit. > > I will send a v2 tomorrow to be applied on top of [1]. > > [1] https://patchwork.kernel.org/patch/10548861/ > > Thanks > -- > Oscar Salvador > SUSE L3 >