Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1330853ybb; Wed, 8 Apr 2020 23:10:18 -0700 (PDT) X-Google-Smtp-Source: APiQypLFWqtg7HDse5djOQcPJ14PKL6SOiMmMY856YN78T7VBLhsci1z6Cwbr6EOJNdwm+OWKQcs X-Received: by 2002:a05:6830:1190:: with SMTP id u16mr8952959otq.83.1586412618223; Wed, 08 Apr 2020 23:10:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586412618; cv=none; d=google.com; s=arc-20160816; b=NzbaSbNvJXpyGFJwgg0OHezO0Wj5wAv8O9Py/Dr316XxhRUQNKVjGOzEWnMKPrWEKW Z2M+vpqqCyAb1Tza3La6GnzwEDneLptRvVKsE5FaHWPAx8Jac0TpXudxQHQC+EvzyCvl hmND0klqaijmaui0zgvdQ7G5rprdLHFWOpwKf4LnfPp7BlB4OAAjzvRngQfSzcZbBrh6 eoFYKyjLs+CfENzDpgMJrQOf8xEXiMmsh+PoocctfHg7qop2Z2vN97aPw1MSsyO6OcYa Lsv5ewrdra6kphUIn5RA/nKafqno661Qdf2fefxwK+DDz/DbBetTar+7S58HkgpyCR8V v/7A== 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; bh=xnaPPtpMNa2w+LCd+Ry0u0u/IG38xlBUXATa+FOkcHQ=; b=QV0kqLugv4303EU0+bcIzlIU5oAurHsFWu0QCh2vszalMYMa5bfab2ks5MLwyKpfea K6Yl0h0Fxcibm26glmLZSib6F6wFEGstef88Dn81fMDAMal0TMiM3DcV+PvvDB33YbIS 6wGG4x+e1KniAQ07SA1ppg/QMYxKPE7P3hJ4o49VJvTZcI6s4wvPkwiQDbD749XcTtZr EpDaZ7R3zhhOEoK4aJoH8GqPY6DGx++dMEMm/yr8eaAPspzLKen3DYqAJydGiNlFCInw VcMkvB4AcY8jHOtMsSJK9IvC8mRH4883St56KSmEtoH4BoS9cNHfGhd1ewsNy5ty+AFe rRGA== 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 g17si3392755otq.314.2020.04.08.23.10.02; Wed, 08 Apr 2020 23:10:18 -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 S1726534AbgDIGJO (ORCPT + 99 others); Thu, 9 Apr 2020 02:09:14 -0400 Received: from verein.lst.de ([213.95.11.211]:45272 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725785AbgDIGJO (ORCPT ); Thu, 9 Apr 2020 02:09:14 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 2C1FD68C4E; Thu, 9 Apr 2020 08:09:12 +0200 (CEST) Date: Thu, 9 Apr 2020 08:09:11 +0200 From: Christoph Hellwig To: Hillf Danton Cc: Christoph Hellwig , Andrew Morton , linux-mm@kvack.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 25/28] mm: remove vmalloc_user_node_flags Message-ID: <20200409060911.GA30101@lst.de> References: <20200408115926.1467567-1-hch@lst.de> <20200409040645.14400-1-hdanton@sina.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200409040645.14400-1-hdanton@sina.com> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 09, 2020 at 12:06:45PM +0800, Hillf Danton wrote: > > - const gfp_t flags = __GFP_NOWARN | __GFP_ZERO; > > + const gfp_t gfp = __GFP_NOWARN | __GFP_ZERO; > > + > > + return __vmalloc_node_range(size, align, VMALLOC_START, VMALLOC_END, > > + gfp | GFP_KERNEL | __GFP_RETRY_MAYFAIL, PAGE_KERNEL, > > Dunno if __GFP_ZERO needs to be added to match the current > vmalloc_user_node_flags(). __GFP_ZERO is already included in "gfp".