Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp323954pxf; Thu, 25 Mar 2021 05:08:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyNtBsn1v8hqHbTYKGLrNlOT39rJDm6Pul9wtT/OxyCv8IgQqFNwVne2wPP5nBjXN4J/OTY X-Received: by 2002:a17:906:a413:: with SMTP id l19mr9064670ejz.421.1616674115193; Thu, 25 Mar 2021 05:08:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616674115; cv=none; d=google.com; s=arc-20160816; b=KrfrJgMWbGvA4OofOi2m0N+qPgkYC/qR8UbKzLkCCh2S0yuhEJQNNjjxvqOjtATD2g YcGlQ0a1J7yEQN7RFxs8XC40XBM0rP2wf1ARP4MieRyLIH/MR57wxjnfYZMJGlsJlZgM D/yNIy3mqwsbL6MoarAj5GeSdPFzGOT4S/rXn8+0FDHlW+bnMBO6wPS7vsS6jOIxNEMv GsRZ8USn2coENxJrsbRSuf5scLCBYPt1GDgBdgW52z0ydfBTr4zwjYuhwnJbkjY87dX1 iInCGl6qH7EUqcNMx1aAEv0O5+hrbO3Qmf5fwEqDZ7j+gaOxVXSrOExh/RQZBohubBFP ibwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=SX63SSXBBS8pfUBjqJXaKRwLtoxqCsaqqgX1eXw+KL8=; b=g6CryLxDWTCTRRFT8dBqmk7+kLUumhEikj5witztQmRv2AF2/3Zk4+mpRnj9RCaho+ afAu+AjqCC/DRcrMPTLdmB6v0GJ3HF6rA8sYULR/caum9Ck+FLguJ5EbmN2pIckffgLI TMjTtQtfRx872SKVj86Q4mcnwSFajsEAOF4h5FBdjg8OiVVGlp/V/wyW8m7N7HtcldnM 0XdS4x5TXAgFTd1HwzykBRFmiXvLKNzj6hnNKz/wfWwUKox/ZAkVtrkleEQKJ2qITlbZ k4+iPRfiVg7v5fTvGpuuI+oQDkW2tlZ3m62ApbF9Y6JmIi6hG57bnBLoEykmc0mykjgZ FQ0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=BlpX2J9D; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dc19si3726692edb.127.2021.03.25.05.08.10; Thu, 25 Mar 2021 05:08:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=BlpX2J9D; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230308AbhCYMHf (ORCPT + 99 others); Thu, 25 Mar 2021 08:07:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48296 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230191AbhCYMH3 (ORCPT ); Thu, 25 Mar 2021 08:07:29 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F01A9C06174A; Thu, 25 Mar 2021 05:07:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=SX63SSXBBS8pfUBjqJXaKRwLtoxqCsaqqgX1eXw+KL8=; b=BlpX2J9DGfGSWThsGnCnGaLc8M IzFqTU3JIj7wN37putBxoc6ddcJ+pMmBH60tPqfy5guBXz+ObmQBpNkNwoDGlVvt1QuI+2ihyYdeX JOmM3sABRl/iWfAdzl8qRZVaTtYAKNuGvRQK3eZlHm3CUbmtOemmWoGwsUIKUZT8KJaRDaWJvzQbW 0GrNHjHvJMHENl3NDzMNXzYMJ7OmmNVzenNTO920WJuWtEQrZg+vFhrPPXbM1jCTNA97WDzQFVu0f VsdOatqvv7RRv6/hmyQF6ROHBW9b+UqmiCwHVBW0jMvGRvpcjS9lh77rgsYfZHBJI6Dvfnr5s/G3Z C+TY7v2g==; Received: from willy by casper.infradead.org with local (Exim 4.94 #2 (Red Hat Linux)) id 1lPOjt-00CrhC-DX; Thu, 25 Mar 2021 12:05:34 +0000 Date: Thu, 25 Mar 2021 12:05:25 +0000 From: Matthew Wilcox To: Mel Gorman Cc: Andrew Morton , Chuck Lever , Jesper Dangaard Brouer , Christoph Hellwig , Alexander Duyck , Vlastimil Babka , Ilias Apalodimas , LKML , Linux-Net , Linux-MM , Linux-NFS Subject: Re: [PATCH 2/9] mm/page_alloc: Add a bulk page allocator Message-ID: <20210325120525.GU1719932@casper.infradead.org> References: <20210325114228.27719-1-mgorman@techsingularity.net> <20210325114228.27719-3-mgorman@techsingularity.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210325114228.27719-3-mgorman@techsingularity.net> Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Thu, Mar 25, 2021 at 11:42:21AM +0000, Mel Gorman wrote: > +int __alloc_pages_bulk(gfp_t gfp, int preferred_nid, > + nodemask_t *nodemask, int nr_pages, > + struct list_head *list); > + > +/* Bulk allocate order-0 pages */ > +static inline unsigned long > +alloc_pages_bulk(gfp_t gfp, unsigned long nr_pages, struct list_head *list) > +{ > + return __alloc_pages_bulk(gfp, numa_mem_id(), NULL, nr_pages, list); Discrepancy in the two return types here. Suspect they should both be 'unsigned int' so there's no question about "can it return an errno". > > +/* If you could make that "/**" instead ...