Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2018091yba; Tue, 2 Apr 2019 22:47:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqwC/fCCjwJwfivh6Ry223l72pMn1f1CVUN7gDpJ1qD8VhUQL8ctTUm79W4ln5dj2jxZH8N7 X-Received: by 2002:a17:902:8bca:: with SMTP id r10mr64759801plo.67.1554270422383; Tue, 02 Apr 2019 22:47:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554270422; cv=none; d=google.com; s=arc-20160816; b=fagYC7F/dXa3l7NLlB1TdywSEJph08L7mf2MPNSfb/LnvoopYCV0H9js1mXzkR9cV1 +a3Z9cRDisTum0DC5PfXAOffEvrOkRAAX9UEzgHMrRo7FhmkDs9tJp4tZPJZ6e7PFElM HHsgM1VNVRI+ZwVAaaD+n3CtM2yrM078bRcGs+rXyNwBwRRFm+NByCrnjMJlgI7Gt2wX zu73gwjHbvkGiXglklOT42pBuFUxw4ng4/l4hSoy7Y7AAcu6lVQbLopPraOpltfetJUE j8xSrE9zJznOQdurHkAqg7p+tWu5snOopj6gmZXw1OGR4TbQvTE5i6VFBAncBbE9WboR JHAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from; bh=rOPg1pFa8vbG6FpoOQcU7NaP39YOPXjxO9bKNmrMJNs=; b=O3TMIw9GGpDW8qWbzQdI3jT9jSQ1ZW7m+SsMUOX9lV5Cvkv3ZrOUWkM2BNVhQ7AQ+D 7R9K6U6O192ZDZ+UB3Dw0LjJF7jFl4JOInlHRaTQVp8HZfcIoVmVsSjF5Wuh2aBIZ4sA +xBJq3fiBp5a7dUgYjbJMj2tvNWQOfOHlVJIytDw1WtfCo//DLlJPh7D6xa8H5LSSPom LT9DvV7N0gQMylnevfO0g4sQ7Dqek3cUL02oGeeZD3zrPzF33BgcgUQ+AznmyBTLKj9U FKVtEt5U7+YePfk8nKvBDLVwjFhmB/o+N6VU+d2ikECkQXGXtmOG+FcnuzAqQupLyAqJ 4fkg== 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 u3si13139347pfn.281.2019.04.02.22.46.47; Tue, 02 Apr 2019 22:47:02 -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 S1728840AbfDCFqB convert rfc822-to-8bit (ORCPT + 99 others); Wed, 3 Apr 2019 01:46:01 -0400 Received: from tyo162.gate.nec.co.jp ([114.179.232.162]:57614 "EHLO tyo162.gate.nec.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726330AbfDCFqA (ORCPT ); Wed, 3 Apr 2019 01:46:00 -0400 Received: from mailgate01.nec.co.jp ([114.179.233.122]) by tyo162.gate.nec.co.jp (8.15.1/8.15.1) with ESMTPS id x335jlHi032156 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 3 Apr 2019 14:45:47 +0900 Received: from mailsv01.nec.co.jp (mailgate-v.nec.co.jp [10.204.236.94]) by mailgate01.nec.co.jp (8.15.1/8.15.1) with ESMTP id x335jlLm010089; Wed, 3 Apr 2019 14:45:47 +0900 Received: from mail02.kamome.nec.co.jp (mail02.kamome.nec.co.jp [10.25.43.5]) by mailsv01.nec.co.jp (8.15.1/8.15.1) with ESMTP id x335jGb1003185; Wed, 3 Apr 2019 14:45:47 +0900 Received: from bpxc99gp.gisp.nec.co.jp ([10.38.151.148] [10.38.151.148]) by mail02.kamome.nec.co.jp with ESMTP id BT-MMP-3939739; Wed, 3 Apr 2019 14:44:36 +0900 Received: from BPXM23GP.gisp.nec.co.jp ([10.38.151.215]) by BPXC20GP.gisp.nec.co.jp ([10.38.151.148]) with mapi id 14.03.0319.002; Wed, 3 Apr 2019 14:44:36 +0900 From: Naoya Horiguchi To: Oscar Salvador CC: "akpm@linux-foundation.org" , "mike.kravetz@oracle.com" , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] mm/hugetlb: Get rid of NODEMASK_ALLOC Thread-Topic: [PATCH] mm/hugetlb: Get rid of NODEMASK_ALLOC Thread-Index: AQHU6VjR5Ud9L/BTCUi9Q0MuQPILkqYpVxOA Date: Wed, 3 Apr 2019 05:44:35 +0000 Message-ID: <20190403054436.GA20228@hori.linux.bs1.fc.nec.co.jp> References: <20190402133415.21983-1-osalvador@suse.de> In-Reply-To: <20190402133415.21983-1-osalvador@suse.de> Accept-Language: en-US, ja-JP Content-Language: ja-JP X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.34.125.148] Content-Type: text/plain; charset="iso-2022-jp" Content-ID: <5D36004EC50BF549823C713D0A9EDB9A@gisp.nec.co.jp> Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-TM-AS-MML: disable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 02, 2019 at 03:34:15PM +0200, Oscar Salvador wrote: > NODEMASK_ALLOC is used to allocate a nodemask bitmap, ant it does it by > first determining whether it should be allocated in the stack or dinamically > depending on NODES_SHIFT. > Right now, it goes the dynamic path whenever the nodemask_t is above 32 > bytes. > > Although we could bump it to a reasonable value, the largest a nodemask_t > can get is 128 bytes, so since __nr_hugepages_store_common is called from > a rather shore stack we can just get rid of the NODEMASK_ALLOC call here. > > This reduces some code churn and complexity. > > Signed-off-by: Oscar Salvador nice cleanup. Reviewed-by: Naoya Horiguchi