Received: by 10.223.185.116 with SMTP id b49csp1054186wrg; Wed, 21 Feb 2018 11:16:13 -0800 (PST) X-Google-Smtp-Source: AH8x226cVd41p7Bu/x5u+Sen/5yffZWlaPbq9JR/hTHRCqcw9e24SM2xJQcsfqYjaj1ajhiSXgGE X-Received: by 10.101.64.67 with SMTP id h3mr3564123pgp.168.1519240573509; Wed, 21 Feb 2018 11:16:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519240573; cv=none; d=google.com; s=arc-20160816; b=wtJ7CEBjexN+MTYJIWa69QuAdhgYTJg186h03xtXKz8Wr0LfYng4syZZr7ckAMCB1v VcML/SY4d1AnrZgwVjpGqIoOo4R1eNVjS0SNRgLHn8k34w19TC/hFB49N57xjSWrKD8+ EIE+gGrexOpsxsze8A9lz2em5lYTfE/l69N1XSyg6Uyibx2wRckfcis+NN93V/0hL3hX 6dvMrhld2GmZEWrt0Mld5oRkRJh446Xp1GrLSgolEhSvOo7fE1ZbtSJr5p1IB40uC9Av lXef0EcR4eTonLHGbEhrjniHATwydZY5LeAI2Iv/aiKIY81cOisnSl5EgCbaN3Ha390o Htyg== 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=fhZhzWDNorD9GCFUSrtpYeuqXZdUMwcuwN4pblZUvRk=; b=jKptwMuzfzvh31SIdaTLCir7Xf5IH+8EhTKY14u/R53i1JT0DtlbkFscz/sFFWKZB7 Y+lAd/dR72RzSmL1OLf8LhIa7kBnMFx1DFLyX0ZawQN2hmT4cPsiIGIiscTSVmjJyGnP tgWrSSDgvz2D8LqCRn4Zqn3ksF+/RMexwhVp6uJgFQDS3R5SUal20zKw8BSjG3CpMXcs CycWA+VSAsaXSphpsc9ln1S5UL/V/a2vYtiknLAJoe5LGHoKDbeTqDqJg82/ty1fGOHQ BsKEZ9uN71jT/g2uMPFuw7GCzwUpgBCYsGjMQsA3h17AdXFr/Ypg37ZyzbxpKp01KSzB GUkg== 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 1-v6si279004ple.726.2018.02.21.11.15.59; Wed, 21 Feb 2018 11:16:13 -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; 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 S932543AbeBUSyc (ORCPT + 99 others); Wed, 21 Feb 2018 13:54:32 -0500 Received: from mx2.suse.de ([195.135.220.15]:46020 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932270AbeBUSy0 (ORCPT ); Wed, 21 Feb 2018 13:54:26 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 85E8FAD91; Wed, 21 Feb 2018 18:54:25 +0000 (UTC) Date: Wed, 21 Feb 2018 19:54:25 +0100 From: Michal Hocko To: Mike Kravetz Cc: Dan Rue , Andrew Morton , linux-mm@kvack.org, Naoya Horiguchi , LKML Subject: Re: [PATCH 5/6] mm, hugetlb: further simplify hugetlb allocation API Message-ID: <20180221185425.GK2231@dhcp22.suse.cz> 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> <840f8c4f-0994-fa7d-0b8d-ad2c8d77c67d@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <840f8c4f-0994-fa7d-0b8d-ad2c8d77c67d@oracle.com> User-Agent: Mutt/1.9.3 (2018-01-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 21-02-18 09:59:40, Mike Kravetz wrote: > 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. I must have screwed up when rebasing. I remember I was splitting this patch... > FWIW, > Reviewed-by: Mike Kravetz Thanks! -- Michal Hocko SUSE Labs