Received: by 10.223.185.116 with SMTP id b49csp1052361wrg; Wed, 21 Feb 2018 11:14:23 -0800 (PST) X-Google-Smtp-Source: AH8x226FlNDZ1jRM8c69Ob9wx1atW6qfWYHrkqbi0aXNMap+F4pmGymyWY+tz5Qal9tRO29cgIIS X-Received: by 10.98.75.206 with SMTP id d75mr4279329pfj.77.1519240463783; Wed, 21 Feb 2018 11:14:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519240463; cv=none; d=google.com; s=arc-20160816; b=q4VrhwJBT9xSRVsZ55pIuc7YUUNnWlWsqcGtLSww94Uye77DGhoPwdqFBLBTazkLX1 E0FHCW04zPuAtVvbVzXX5SAb8qTXYR4Mur3edJs3m22SpvmYCaAELfVCTtpaYe3FQ0mG OXk9v1plhf7wHrZ0RVBNmk4Ht2WAlMZrA7CaPUyTqnYTqoFf4tn5bXxlVGn24kwaeccH 3hMaF9Gzpx9c2qfEe0rqb69vnj8efq4O/AVUW1JVS2bXqaUn1gAOLVxwKgB6FRrVy6si 3ZYh5I7qbVWSB87XEOE8Vtr+2vORlVhVKmIOXe+XmDBMdtsfqcQ2MkBmXVX9qyNNLMKk YFiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=tKKuks65ttwc+hCn7HCRcOZojPPgJG7Ua5ct/9E+C8Q=; b=o2a2D/bwEN++Z+pbDPKSWZhEsrMs9HQ9jwbX7vztEic95Kn8hkA2T8cURCwokkAF45 cvATg+1eabyFg7ZLkBFSq9PiL06hqNsDmRQyRc+NEWPVrzjrZYDED9UOsCINGEiM0tM3 mrYT5Emwo7GlHIaraZiUNYZpLPceUGeqw/0rdgmggrCLq/dOVXIuAq1hnJaGsDvKEaeh HDjJ2721wwpfN5B/uK0t9a1b/2JOJ1EwmGmLwwAVq0+zpGTy3VeEOskvi4EVzDuaTmrQ IlR/pckSF8AZu+NoJvkBAkZ/FdIToiCoPZ9Y7JHifqyBRMlWN4159JWU55q1ajd1LSGr ITPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=G8DHcGA8; 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 t125si394126pgc.38.2018.02.21.11.14.09; Wed, 21 Feb 2018 11:14:23 -0800 (PST) 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-2017-10-26 header.b=G8DHcGA8; 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 S938943AbeBUR7v (ORCPT + 99 others); Wed, 21 Feb 2018 12:59:51 -0500 Received: from userp2120.oracle.com ([156.151.31.85]:44464 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933620AbeBUR7t (ORCPT ); Wed, 21 Feb 2018 12:59:49 -0500 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w1LHvNsV036227; Wed, 21 Feb 2018 17:59:43 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=corp-2017-10-26; bh=tKKuks65ttwc+hCn7HCRcOZojPPgJG7Ua5ct/9E+C8Q=; b=G8DHcGA8WVH4a3HALmgNBrUsSv/x2a7HT/R6JAHkZrPMkP1atAsceSEpNRIPds2zCYnX rin7Q0pqpoeGNmmG8wAJGYOSoGPi7Tfzd3vAiMk9bciFRnAJ+4u1pvJF+zDpRymlgJ1W l0mohnsroc5CNX5DHS3FrS0JWuMIcPXwrz4sZh3+bjMVyVqkdL7hE8k7AfX8o24RuWR2 1C3ntG0ZmasQsw5tRKN26oUwGQttLkRblAgdKU/NZ+En9DWcG6l/oIsTB2fbgMpPB5rs 0Kr5bV/+3k0dgYFAesKHTSrgEO1tgWdT9waPYrjfNOd+vd8Kt44EQ/xV6bwtnUqCS8aN yg== Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp2120.oracle.com with ESMTP id 2g9btprsd6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 21 Feb 2018 17:59:43 +0000 Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w1LHxggA015053 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 21 Feb 2018 17:59:42 GMT Received: from abhmp0002.oracle.com (abhmp0002.oracle.com [141.146.116.8]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w1LHxf7G009533; Wed, 21 Feb 2018 17:59:41 GMT Received: from [192.168.1.164] (/98.246.252.205) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 21 Feb 2018 09:59:41 -0800 Subject: Re: [PATCH 5/6] mm, hugetlb: further simplify hugetlb allocation API To: Michal Hocko , Dan Rue Cc: Andrew Morton , linux-mm@kvack.org, Naoya Horiguchi , LKML References: <20180103093213.26329-1-mhocko@kernel.org> <20180103093213.26329-6-mhocko@kernel.org> <20180221042457.uolmhlmv5je5dqx7@xps> <20180221095526.GB2231@dhcp22.suse.cz> <20180221100107.GC2231@dhcp22.suse.cz> From: Mike Kravetz Message-ID: <840f8c4f-0994-fa7d-0b8d-ad2c8d77c67d@oracle.com> Date: Wed, 21 Feb 2018 09:59:40 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <20180221100107.GC2231@dhcp22.suse.cz> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8811 signatures=668676 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=977 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1802210218 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/21/2018 02:01 AM, Michal Hocko wrote: > On Wed 21-02-18 10:55:26, Michal Hocko wrote: > Hmm, I guess I can see it. Does the following help? > --- > diff --git a/mm/hugetlb.c b/mm/hugetlb.c > index 7c204e3d132b..a963f2034dfc 100644 > --- a/mm/hugetlb.c > +++ b/mm/hugetlb.c > @@ -1583,7 +1583,7 @@ static struct page *alloc_surplus_huge_page(struct hstate *h, gfp_t gfp_mask, > page = NULL; > } else { > h->surplus_huge_pages++; > - h->nr_huge_pages_node[page_to_nid(page)]++; > + h->surplus_huge_pages_node[page_to_nid(page)]++; > } > > out_unlock: I thought we had this corrected in a previous version of the patch. My apologies for not looking more closely at this version. FWIW, Reviewed-by: Mike Kravetz -- Mike Kravetz